Forum Moderators: open
The lines below are only suggestions and may NOT be beneficial to every webmaster.
SetEnvIf User-Agent ^Java keep_out
SetEnvIf User-Agent ^Web keep_out
SetEnvIf User-Agent Library$ keep_out
order allow,deny
deny from 63.148.99.
deny from 65.118.41.
allow from all
deny from env=keep_out
RewriteEngine on
RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http://yourdomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://www.yourdomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://yourOtherdomain.net/.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://www.yourOtherdomain.net/.*$ [NC]
RewriteRule .*\.[Jj][Pp][Gg]$¦.*\.[Gg][Ii][Ff]¦.*\.[Pp][Dd][Ff]$ - [F]
RewriteCond %{HTTP_USER_AGENT} ^-?$
RewriteRule ^.*$ - [F]
RewriteCond %{HTTP_REFERER} ^www.addresses.com.* [OR]
RewriteCond %{HTTP_REFERER} ^www.datashaping.com* [OR]
RewriteCond %{HTTP_REFERER} ^http://www.weblinkvalidator.com/*
RewriteRule ^.*$ - [F]
RewriteCond %{HTTP_USER_AGENT} ^Microsoft
RewriteCond %{REMOTE_ADDR}!^131\.107\.
RewriteRule .* - [F]
RewriteCond %{REMOTE_ADDR} ^81\.86\.(12[8-9]¦1[3-9][0-9])\. [OR]
RewriteCond %{REMOTE_ADDR} ^81\.1(2[89]¦[3-5][0-9])\.
RewriteRule ^.*$ - [F]
Redirect Gone /yourDEletedPage.html
Redirect Permanent /yourOldPage.html [yourdomain.com...]
SetEnvIf User-Agent ^Java keep_out
SetEnvIf User-Agent ^Web keep_out
SetEnvIf User-Agent Library$ keep_out
deny from 63.148.99.
deny from 65.118.41.
RewriteEngine on
RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http://yourdomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://www.yourdomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://yourOtherdomain.net/.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://www.yourOtherdomain.net/.*$ [NC]
RewriteRule .*\.[Jj][Pp][Gg]$¦.*\.[Gg][Ii][Ff]¦.*\.[Pp][Dd][Ff]$ - [F]
RewriteCond %{HTTP_USER_AGENT} ^-?$
RewriteRule ^.*$ - [F]
RewriteCond %{HTTP_REFERER} ^www.addresses.com.* [OR]
RewriteCond %{HTTP_REFERER} ^www.datashaping.com* [OR]
RewriteCond %{HTTP_REFERER} ^http://www.weblinkvalidator.com/*
RewriteRule ^.*$ - [F]
RewriteCond %{HTTP_USER_AGENT} ^Microsoft
RewriteCond %{REMOTE_ADDR}!^131\.107\.
RewriteRule .* - [F]
Redirect Gone /yourDEletedPage.html
Redirect Permanent /yourOldPage.html [yourdomain.com...]
RewriteCond %{REMOTE_ADDR} ^81\.86\.(12[8-9]¦1[3-9][0-9])\. [OR]
RewriteCond %{REMOTE_ADDR} ^81\.1(2[89]¦[3-5][0-9])\.
RewriteRule ^.*$ - [F]
If there are any questions?
I'll do my best to assist.
There are others which are more adapt at this than myslef. Hopefully they will jump in should I provide inaccurate information.
Don
81.135.48.65 - - [15/Jul/2003:13:30:04 -0700] "GET /mypage.html HTTP/1.1" 403 - "http://google.btopenworld.com/dynamic/search/google_search_panel.jsp" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; BTT V3.0)"
81.135.48.65 - - [15/Jul/2003:13:30:19 -0700] "GET /mypage.html HTTP/1.1" 403 - "http://google.btopenworld.com/dynamic/search/google_search_panel.jsp" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; BTT V3.0)"
81.135.48.65 - - [15/Jul/2003:13:30:20 -0700] "GET /mypage.html HTTP/1.1" 403 - "http://google.btopenworld.com/dynamic/search/google_search_panel.jsp" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; BTT V3.0)"
81.135.48.65 - - [15/Jul/2003:13:30:22 -0700] "GET /mypage.html HTTP/1.1" 403 - "http://google.btopenworld.com/dynamic/search/google_search_panel.jsp" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; BTT V3.0)"
81.135.48.65 - - [15/Jul/2003:13:30:25 -0700] "GET /mypage.html HTTP/1.1" 403 - "http://google.btopenworld.com/dynamic/search/google_search_panel.jsp" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; BTT V3.0)"
81.135.48.65 - - [15/Jul/2003:13:30:26 -0700] "GET /mypage.html HTTP/1.1" 403 - "http://google.btopenworld.com/dynamic/search/google_search_panel.jsp" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; BTT V3.0)"
81.135.48.65 - - [15/Jul/2003:13:30:32 -0700] "GET /mypage.html HTTP/1.1" 403 - "http://google.btopenworld.com/dynamic/search/google_search_panel.jsp" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; BTT V3.0)"
81.135.48.65 - - [15/Jul/2003:13:30:32 -0700] "GET /mypage.html HTTP/1.1" 403 - "http://google.btopenworld.com/dynamic/search/google_search_panel.jsp" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; BTT V3.0)"
81.135.48.65 - - [15/Jul/2003:13:30:41 -0700] "GET /mypage.html HTTP/1.1" 403 - "http://google.btopenworld.com/dynamic/search/google_search_panel.jsp" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; BTT V3.0)"
81.135.48.65 - - [15/Jul/2003:13:30:42 -0700] "GET /mypage.html HTTP/1.1" 403 - "http://google.btopenworld.com/dynamic/search/google_search_panel.jsp" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; BTT V3.0)"
It is irrelavant to me that a party used google to get to my site in this instance.
Only that I do NOT desire any traffic from BT or even most of the UK and RIPE for that matter.
208.185.93.9 - - [15/Jul/2003:15:28:01 -0700] "GET / HTTP/1.0" 403 - "-" "-"
Abovenet Communications, Inc ABOVENET-6 (NET-208-184-0-0-1)
208.184.0.0 - 208.185.255.255
ADDR.COM MFN-B652-208-185-93-0-24 (NET-208-185-93-0-1)
208.185.93.0 - 208.185.93.255
This person saw that their referring pages are denied in my example and attempts entry and is denied under the blank UA.
No matter their IP range is denied also.
In fact the entire Abovent range is denied.