- 1,233 categories
- 40,467 scripts
Updated: 11/14/2007
- This script uses a custom 404 page that logs the IP address and amount of times it has loaded the 404_error.pl .If someone loads the 404 page 3 times in succession their IP address is logged to the banned_ip_list.log file. Every 60 seconds build_deny_list.pl opens the banned_ip_list.log file and gets the IP address to block. It then generates some C# code, adds that banned IP to the C sharp code, compiles the C code into an executable binary. This C sharp program is actually what adds the IP to the IIS deny list. After the build_deny_list.pl generates and executes the binary, it deletes the original source and executable file.
- Categories
- Tags
- Platforms
- Licenses
- Author
- Customized 404 and other default error pages improve user experience and reduce abandonment rates by maintaining the look and feel of your site and offering alternate page destinations. Unfortunately, setting them up in Microsoft IIS usually requires...
- This example demonstrates how to serve a custom page to users whenever a 404 error occurs as well as log the user info such as ip, referer, request, agent into a database.
- Everyone has seen an HTTP 404 error at some point. You follow a link on a web page, and BOOM - File not found. Perhaps the author spelt it incorrectly, or the page was uploaded to the server by mistake. This tutorial''ll show you how to handle t...
- The basic 404 error or file not found page serves two specific purposes. Firstly, to alert the user that the item they were expecting is
not currently available. Secondly, to alert the
webmaster that a file is missing or a link is targeting somet...
- No one likes to see 404 pages and it''s even worse when you find one on your own site. This tutorila explains how to make the 404 page useful to the user and notify yourself so you can fix them ASAP.