Hi does anyone know how to block VPN users? So whoever is on VPN cant access the website/hotel.
Thanks.
Printable View
Hi does anyone know how to block VPN users? So whoever is on VPN cant access the website/hotel.
Thanks.
You would need to get a list of VPN IPs from somewhere, such as Google, and then block them through your host's firewall. This is tricky though, as you can't physically block every proxy with a click of a button, you'd need to know the IP of every proxy to do such, and overall that would take a lot of time.
Just ask google, from a simple search I managed to get a list of Hotspot shields vpn ip's.
hotspot shield elite
Australia 203.98.92.2 / 203.98.92.254
United Kingdom 193.109.199.2 / 193.109.199.254
United States (Pennsylvania) 209.107.208.2 /209.107.208.254
United States (California) 68.68.99.2 / 68.68.99.254
EDIT: but like Terrum said this would take along time to complete as there are many VPN's about, heres a list of Cyberghosts's IP's;
79.141.167.9 Basel.cyberghostvpn.com
79.141.166.7 Praha.cyberghostvpn.com
84.19.169.166 Andromeda.cyberghostvpn.com
84.19.169.162 Apus.cyberghostvpn.com
84.19.165.210 Aquila.cyberghostvpn.com
217.114.211.242 Ara.cyberghostvpn.com
84.19.169.164 Auriga.cyberghostvpn.com
95.141.28.53 Bremen.cyberghostvpn.com
84.19.165.216 Camelopardalis.cyberghostvpn.com
217.114.211.243 Cancer.cyberghostvpn.com
84.19.165.213 Carina.cyberghostvpn.com
84.19.169.233 Cassiopeia.cyberghostvpn.com
84.19.165.220 Cetus.cyberghostvpn.com
84.19.165.219 Corvus.cyberghostvpn.com
84.19.169.226 Draco.cyberghostvpn.com
84.19.165.211 Eridanus.cyberghostvpn.com
84.19.169.169 Fornax.cyberghostvpn.com
84.19.169.234 Gallus.cyberghostvpn.com
84.19.169.165 Gemini.cyberghostvpn.com
84.19.165.221 Grus.cyberghostvpn.com
95.141.28.51 Hamburg.cyberghostvpn.com
84.19.169.235 Horologium.cyberghostvpn.com
84.19.169.173 Hydra.cyberghostvpn.com
84.19.165.217 Indus.cyberghostvpn.com
95.141.28.55 Kiel.cyberghostvpn.com
84.19.169.228 Lacerta.cyberghostvpn.com
84.19.169.172 Leo.cyberghostvpn.com
217.114.211.244 Libra.cyberghostvpn.com
84.19.169.170 Lupus.cyberghostvpn.com
84.19.165.218 Lynx.cyberghostvpn.com
217.114.211.245 Musca.cyberghostvpn.com
84.19.165.222 Norma.cyberghostvpn.com
84.19.169.237 Pavo.cyberghostvpn.com
84.19.169.229 Phoenix.cyberghostvpn.com
84.19.165.215 Pisces.cyberghostvpn.com
95.141.28.57 Rostock.cyberghostvpn.com
84.19.169.167 Sculptor.cyberghostvpn.com
84.19.169.174 Taurus.cyberghostvpn.com
84.19.169.238 Tigris.cyberghostvpn.com
84.19.169.171 Virgo.cyberghostvpn.com
84.19.165.212 Vulpecula.cyberghostvpn.com
79.141.165.21 Kobenhavn.cyberghostvpn.com
95.141.26.2 Madrid.cyberghostvpn.com
79.141.172.14 Helsinki.cyberghostvpn.com
79.141.163.5 Paris.cyberghostvpn.com
79.141.162.7 Dublin.cyberghostvpn.com
95.141.31.2 Milano.cyberghostvpn.com
79.141.173.22 Amsterdam.cyberghostvpn.com
79.141.164.5 Oslo.cyberghostvpn.com
79.141.160.21 Warszawa.cyberghostvpn.com
93.114.44.113 Brasov.cyberghostvpn.com
93.114.43.204 Bukarest.cyberghostvpn.com
93.114.44.87 Sibiu.cyberghostvpn.com
93.114.44.66 Timisoara.cyberghostvpn.com
79.141.170.3 Stockholm.cyberghostvpn.com
95.141.27.5 Kiev.cyberghostvpn.com
67.221.255.33 Buchanan.cyberghostvpn.com
67.221.255.15 Fillmore.cyberghostvpn.com
67.221.255.11 Harrison.cyberghostvpn.com
67.221.255.16 Pierce.cyberghostvpn.com
67.221.255.13 Polk.cyberghostvpn.com
67.221.255.17 Taylor.cyberghostvpn.com
67.221.255.12 Tyler.cyberghostvpn.com
79.141.161.8 London.cyberghostvpn.com
You can do it through PHP if you want, but it would be better doing it through the firewall so they have no way of bypassing and they have absolute lockout of the host when blocked through the firewall.
Blocking IPs through firewall: http://www.studyblog.net/2011/10/blo...dows-firewall/
Blocking IPs with PHP: http://www.blackdog.ie/blog/blocking...nges-with-php/
Thanks for the help guys!