Filed under:

How can I block people from specific IP Addresses so they cannot access my web site ?

To block certain IP Addresses from accessing your web site ...

You can add the following to the .htaccess file in your www directory:

<Limit GET>
order deny,allow
deny from
(change the ip address to the appropriate ip you wish to block)

This will block them from seeing not only your web pages, but any pages in subdirectories below the main site. If you wish to block them from seeing only one, or a small subset of, subdirectories, place the above code in the .htaccess file of the highest level directory that you want blocked.

Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
article icon Cron Cheat Sheet (Views: 2599)