Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Manually? | 3 comments | Create New Account
Click here to return to the 'Manually?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Manually?
Authored by: Thom on Feb 21, '02 10:55:18PM

Welp, I have Apache set up on my machine to serve the ErrorDocument for 404 as a script called ad_snarfer.php. I use this in conjunction with the custom hosts file hack (google: "OS X" hosts file) to see what ad links are trying to pull up -- off of my machine. ;)

You can also set up a server alias for '/' to run whatever document you'd like as well...

Using PHP, it would not be that hard to ereg match those code red worm 'known bad urls' against the request string, and if you got a match, issue a system command to add that host's IP to the ip firewall or whatever.



[ Reply to This | # ]