Forum Moderators: phranque

Message Too Old, No Replies

deny proxies on htaccess

         

xt35

7:17 pm on Feb 4, 2006 (gmt 0)

10+ Year Member



hello.

is there a way to have your site unavailable for users with proxies?
i've seen few sites that don't allow you to login if you're using a proxy, so i believe that is possible from htaccess.

thanks

jdMorgan

11:27 pm on Feb 4, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can examine the following request headers using mod_rewrites RewriteCond, or SetEnvIf

HTTP_VIA
HTTP_X_FORWARDED_FOR
HTTP_FORWARDED
CLIENT_IP
HTTP_FROM
HTTP_PROXY_CONNECTION
HTTP_X_FORWARDED
HTTP_FORWARDED_FOR
HTTP_X_COMING_FROM
HTTP_COMING_FROM

and if they meet your criteria, then block the access.

However, what you will probably find is that your worst 'problem users' will be those who use anonymous proxies which by definition won't send any of those headers. So all you will accomplish is to block legitimate proxy connections, the users behind corporate and ISP proxies, for example, all AOL users, many corporations, satellite ISP users, etc.

Jim

xt35

8:28 am on Feb 5, 2006 (gmt 0)

10+ Year Member



Thanks for the info.