Forum Moderators: phranque
RewriteCond %{HTTP_REFERER} /paston/paston2\.html$
RewriteRule ^ebooks/paston/paston2\.html - [F] RewriteCond %{HTTP_REFERER} /(fonts)/$
RewriteRule ^hovercraft/april_(blues)\.html http://example.com/boilerplate/redirect.php?oldpage=%1&newpage=$1 [R=301,L] If it were one IP doing it, I could redirect that request to a super-long YouTube.
"Mozilla/5.0 (Windows NT 6.3; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0" it tells you the "browser" the robot is set up to mimic to send requests. It is easily spoofed and can be changed from one request to the next, but usually not. Often enough there is something unique in there you can use to block it with.
Yes, I'm assuming that a robot will eventually get tired and go away.
As to the User Agent, where can I find that?
If so, the individual requests you're seeing now are just tests that take place every time a new machine is infected. As long as the botnet is in the process of creation, this is all you'll see.
Gee, I really like the super-long YouTube trick.
Instead of re-directing or returning a 404, you need to return a 403 forbidden. If you set it up properly, that uses much less bandwidth and server resources.
Very interesting about this botnet.
As to setting up a defense that lets real humans though but blocks everything else with a 403 is, I suppose, what this thread is about. Still not quite sure how to do that.
That's still not clear to me.
How does the "404 redirect" manifest itself at the server level? Seems like if you're redirecting all requests for the page, there should never be the opportunity for a 404 to come up at all. What's the actual response that is sent out?
They obviously get something out of it, or there wouldn't be so ### many of them.
I suppose that's true that a 404 never happens, at least from this website.
Uh-oh. That really sounds like what Google calls a "soft 404". It's what they're looking for when they request a nonsense URL like bc896oe5utjjkb.html --if a site knows what's good for it, that request had better yield a 404!
Such that a hard 404 "FILE NOT FOUND!" is going to offer a better experience?