Quote:
Originally Posted by percepts I've looked at the IPs but they come from all over the place |
That suggests that what you are seeing is a botnet - the hits come from "zombies", usually computers owned by innocent (if stupid) people who have no idea they have been compromised, or that their computer is attempting to access your site.
As for your .htaccess, you only need to turn on the Rewrite Engine once, the L after the F is redundant, and you seem to have an accidental space in N T.
Code:
# Turn on mod-rewrite
RewriteEngine On
# Unwanted user-agent list
RewriteCond %{HTTP_USER_AGENT} favorstar [NC,OR]
# Last one has no OR
RewriteCond %{HTTP_USER_AGENT} ^web [NC]
# Let them have robots.txt
RewriteCond %{REQUEST_URI} !^/robots\txt
# But nothing else
RewriteRule .* - [F]
# if a request for the javascript file
RewriteCond %{REQUEST_URI} /js/script\.js [NC,OR]
# or the php file
RewriteCond %{REQUEST_URI} /myfile\.php [NC]
# has a blank referrer
RewriteCond %{HTTP_REFERER} ^$ [NC]
# and a particular user-agent
RewriteCond %{HTTP_USER_AGENT} Mozilla/4\.0 \(compatible;\ MSIE\ 6\.0;\ Windows\ NT 5\.1\)$ [NC]
# choke on this
RewriteRule .* - [F] Botnets don't usually give up in a hurry even if blocked - once the "controller" gives them a target they keep hammering away obliviously, and I usually block their IPs for a few months.
Unless you are having a specific problem there is no point blocking referrers from Webalta (a very large Russian search engine) as you are unlikely to get any (I do block their bot though). The same goes for favorstar I suspect, and that would also be blocked on my sites due to it's user agent.
In fact I block anything with "bot", "spider" or "crawl" that is not a mainstream search engine.
And much else besides.
...