Welcome to WebmasterWorld Guest from 54.211.62.139

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Block Proxy(ies)

     
9:20 pm on Feb 28, 2012 (gmt 0)

Junior Member

joined:Feb 28, 2012
posts: 54
votes: 0


I appreciate not all proxy users are bad users and not all have ill-intent, but I came across the following code and wondered what your views were on it please. I would at least like to perhaps redirect visitors to a page which encourages them to reveal their real IP.

Many thanks in advance.

RewriteCond %{HTTP:VIA}     !^$ [OR]
RewriteCond %{HTTP:FORWARDED} !^$ [OR]
RewriteCond %{HTTP:USERAGENT_VIA} !^$ [OR]
RewriteCond %{HTTP:X_FORWARDED_FOR} !^$ [OR]
RewriteCond %{HTTP:PROXY_CONNECTION} !^$ [OR]
RewriteCond %{HTTP:XPROXY_CONNECTION} !^$ [OR]
RewriteCond %{HTTP:HTTP_PC_REMOTE_ADDR} !^$ [OR]
RewriteCond %{HTTP:HTTP_CLIENT_IP} !^$
RewriteRule ^(.*)$ - [F]
12:00 am on Feb 29, 2012 (gmt 0)

Administrator from US 

WebmasterWorld Administrator incredibill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 25, 2005
posts:14650
votes: 94


This will block some actual ISPs including a major cable provider in Canada if I remember correctly and entire countries as some put everyone behind a proxy.

You can do what you're doing as long as you make exceptions and let the good ones in, otherwise you can lose a bunch of customers.
12:24 am on Feb 29, 2012 (gmt 0)

Junior Member

joined:Feb 28, 2012
posts: 54
votes: 0


Who is the Canadian ISP Bill and I presume the country you're talking about is China?

I believe AOL use proxies for their customers too.
Thanks
1:13 am on Feb 29, 2012 (gmt 0)

Administrator from US 

WebmasterWorld Administrator incredibill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 25, 2005
posts:14650
votes: 94


I don't remember which ISP, I'd have to look it up, but I think it was Rogers or Shaw, and I think it was just for one segment of their service. Been a long time since I researched it but I know I have an exception for one of them.

No, the country I was thinking of wasn't China. I think UAE is one using a proxy and they aren't the only ones.
1:27 am on Feb 29, 2012 (gmt 0)

Junior Member

joined:Feb 28, 2012
posts: 54
votes: 0


OK, if I'm honest they would be no great loss to the site in question but your word of caution is definitely food for thought.

(I hope you received my StickyMail)

Thank you
1:34 am on Feb 29, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 27, 2001
posts:1472
votes: 0


Google Preview and some other services use proxies. Also, a lot of mobile networks use proxies also.
1:37 am on Feb 29, 2012 (gmt 0)

Junior Member

joined:Feb 28, 2012
posts: 54
votes: 0


Yes I'm beginning to see I would need quite a list of exceptions.
5:04 pm on Mar 1, 2012 (gmt 0)

Junior Member

joined:Feb 28, 2012
posts: 54
votes: 0


On a similar subject, so posting here instead of starting another thread:

#Block Ukranian, Polish and Russian referrer web sites #
RewriteCond %{HTTP_REFERER} \.(ru|ua|pl)/ [NC]
RewriteCond %{HTTP_REFERER} !(google\.|bing\.|yahoo\.) [NC]
RewriteRule . 403referrer.php [F]


Is this sort of block a good or bad idea ?
Thanks