Page is a not externally linkable
- Code, Content, and Presentation
-- HTML
----


Air - 1:51 am on Dec 22, 2000 (gmt 0)


To ban an IP add to your .htaccess file:

deny from xxx.xxx.xxx.xxx

where xxx.xxx.xxx.xxx is a full or partial IP address.

To keep the Index of/ from being displayed:
you can do it by adding the following statement to your .htaccess file, you only need one in your root, unless you have different rules per directory then you can put an .htaccess in the directory you want it to apply the rule to.

eg.

DirectoryIndex index.html index.htm /directory/path/error.html

For a request where no page is specified, the above statement in your .htaccess file would cause the server to look for and display index.html, if it does not exist then it would look for and display index.htm, and if it does not exist it would display error.html from /directory/path, if none of those exist then you will get the directory listing displayed.


Thread source:: http://www.webmasterworld.com/html/131.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com