COMMENTS: If you know someones IP and don't wish for some reason them entering your site, then this is the ticket.
Special thanks to for this script.
This is one of my favorites! I wrote this script to keep certain people from entering my site.
It works like this: I used SSI to find the user's IP address, and then, if their IP address matches the one listed, they get kicked out of the site.
Here's what you need to do to make it work for you:
1. Change the IP address in the line that says "if (ip == '206.186.23.178') {" to the IP address of the person that you want to keep out.
The best way to find out their IP address is to send them an E-mail and copy their address when the send a reply.
2. Change the URL in the line that says {location.href="http://www.mydesktop.com" } to a URL where you want the person to be sent when they enter your site.
3. Put the script in a file with an extension of .shtml, because the script uses Server Side Includes.