How to restrict all proxy servers for our joomla site
Posted: Wed Oct 28, 2009 5:12 am
Hi all,
I am trying to restrict all proxy servers for one of my joomla site . I have set up one component to restrict specified IP Address ,But now we need Restriction for proxy servers also and I foud following
statements to put inside the .htaccess file:
# block proxy servers from site access
# http://perishablepress.com/press/2008/0 ... -htaccess/
RewriteEngine on
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]
But when I try to access my website through one of the proxy site I easily access the site or anyone easily access. It means my .htaccess file isn't working for proxy restriction.
So Anyone can help me and can get me out of this problem.
I am trying to restrict all proxy servers for one of my joomla site . I have set up one component to restrict specified IP Address ,But now we need Restriction for proxy servers also and I foud following
statements to put inside the .htaccess file:
# block proxy servers from site access
# http://perishablepress.com/press/2008/0 ... -htaccess/
RewriteEngine on
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]
But when I try to access my website through one of the proxy site I easily access the site or anyone easily access. It means my .htaccess file isn't working for proxy restriction.
So Anyone can help me and can get me out of this problem.