Friday, 18 November 2011

How to Block Proxy Servers?
(Important for web designer and relate web development)
Do you operate an e-commerce business? You check your access logs daily to see if there have been suspicious activities, such as hackers or botnets hacking your system.
Perhaps one of the challenges you face is proxy servers. You would like to block them so they don’t harm your system. Block proxy servers with the follow this methods
Basically there are
Method -1)
In this method you have to purchase software from the 3rd party  vendor  
1. Install proxy software on your server. (Already available on google try it from google search )
2. Analyze the IP address
3. Verify if the address is a static IP address.
4. Search for the IP address in the CIDR.
5. Block the proxy server from visiting your website.
This method will work if  you have used apache server for configuration
Block proxy servers by HTTP protocols.
 If you don’t want to purchase software, there is another way. You can insert a script in your website’s root .htaccess file. It’s best to copy and paste the code, rather than type it. That way, you can be sure that you won’t make any errors. After you’ve inserted the code, upload it to your server. This method is effective. Insert the following code:

# block proxy servers from site access
# source:
# for details on how .htaccess is working check out url:

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:HTTP_PC_REMOTE_ADDR} !^$ [OR]
RewriteCond %{HTTP:HTTP_CLIENT_IP}  !^$
RewriteRule ^(.*)$ - [F]
[Note: again only applicable for apache server ]
Enjoy web designing in secure way..

No comments:

Post a Comment