Blocking an IP Address______________


With this code you can block people from entering your site if you have their IP address. An IP address is kind of like a person's social security number - only for the internet. It's fairly long and it's different for everybody and it varies depending on the server you use (like AOL, MSN, etc). They're used to track people's internet activities. You can most likely view a person's IP address through form submissions or guestbook entries; when you go to view or edit them you will see the person's information that they entered, along with a nine digit number. That's their IP address. So if they've left a rude or an obnoxious message as "Anonymous", you can either track them or block them permanently from your site. However, not all internet users have the same IP address all of the time. Bigger companies like AOL give you a different one each time you sign on, which is why some sites say 'NO AOL' as a site requirement. They're convenient though, so they're worth a shot :)

Here's what you do:
  • Open up a new, blank page document and paste this code anywhere you want:
  • Make sure you change 00.000.00.00 to the IP address of the person that you want to ban.
  • Save that document as .htaccess and upload it to your site. Do NOT add ".html" after it, leave it as it is.

**Note: If you already have an .htaccess file (which is also used to customize your own 404 page), then open up your already existing document and paste this code under it. Whatever you prefer.

You're done! :)
Hosted by www.Geocities.ws

1