Howto: 404 Error logging

Discussion in 'OT Technology' started by Astro, Feb 21, 2004.

  1. Astro

    Astro Code Monkey

    Mar 18, 2000
    Likes Received:
    Cleveland Ohio
    Anyone want a howto on this?

    I just put together some PHP code to identify the URI being requested and determine if its a silly user mistake or if someone is trying ot be a thug. Instead of fishing in your server log, you could quickly pull these results out and have fun with them (ban the IP, port scan, contact the ISP).

    I'm kind of tired of stuff like this:


    You get the idea. I don't log every 404 - just the ones that appear they're testing for a vulnerability. So I've got some code if folks are interested to log the user info, page requested, date/time, and dns name when they "trip" on one of my 404 tests. If there's interest, I'll post it here...

Share This Page