homepage Welcome to WebmasterWorld Guest from 54.161.185.244
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Block Proxy(ies)
Seedy



 
Msg#: 4422834 posted 9:20 pm on Feb 28, 2012 (gmt 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]

 

incrediBILL

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



 
Msg#: 4422834 posted 12:00 am on Feb 29, 2012 (gmt 0)

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.

Seedy



 
Msg#: 4422834 posted 12:24 am on Feb 29, 2012 (gmt 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

incrediBILL

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



 
Msg#: 4422834 posted 1:13 am on Feb 29, 2012 (gmt 0)

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.

Seedy



 
Msg#: 4422834 posted 1:27 am on Feb 29, 2012 (gmt 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

Key_Master

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4422834 posted 1:34 am on Feb 29, 2012 (gmt 0)

Google Preview and some other services use proxies. Also, a lot of mobile networks use proxies also.

Seedy



 
Msg#: 4422834 posted 1:37 am on Feb 29, 2012 (gmt 0)

Yes I'm beginning to see I would need quite a list of exceptions.

Seedy



 
Msg#: 4422834 posted 5:04 pm on Mar 1, 2012 (gmt 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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved