Block Webpages Access – Proxies
Version 2.2d
Revision: 23 Build 31
Block Webpages Access – Proxies
Introduction: alright everyone! This is going to be very harsh. But, It’s only a warning, for the bad users, who is / are attacking my website.
This articles is only shown for interest, if they want to exclude users, individuals and bad surfers from accessing the author’s website, by using “Proxies” to bypass webpages – security holes; attacking our website and servers; giving us the DDoS attacks and abusing our bandwidth without my consent!
You all know the rules…
- No sneaking (behind the wall) and looking at the author’s website.
- Stealing website’s information and attacking the servers, by using “Proxies”, is against the laws.
- Using proxies to hide yourself and abuse the author’s website and servers is a criminal offence.
———————-
Part A: block Proxies (99.5%) with htaccess scripts.
—Copy Source Code—
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:X-FORWARDED} !^$ [OR]
RewriteCond %{HTTP:FORWARDED-FOR} !^$ [OR]
RewriteCond %{HTTP:HTTP_CLIENT_IP} !^$
RewriteRule ^(.*)$ - [F]
—End Source Code—
Part B: block anonymous user agents.
—Copy Source Code—
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} anonymous [NC]
RewriteRule ^.* - [F,L]
—End Source Code—
Part C: block domain referrers.
—Copy Source Code—
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://(www\.)?refererdomain1\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(www\.)? referrerdomain2\.co\.uk
RewriteRule .* - [F]
—End Source Code—
Single Domain Refferers
—Copy Source Code—
RewriteEngine On
RewriteCond %{HTTP_REFERER} refererdomain1\.com.*$ [NC]
RewriteRule .* - [F]
—End Source Code—
Notes: these codes should block those nasty proxies’ users from abusing your website, forums or blogs. But, please be careful…
Copyrighted By Lair360


