Posted by: prajapatinilesh | April 6, 2010

.htaccess – some security on site.

File Name:   .htaccess  – put this on root directory of htdocs folder.

#order deny,allow
#deny from all
#allow from 127.0.0.1

#Options +Indexes # enables Directory listing
#Options –Indexes # disables directory listing

#just create an empty directory list
IndexIgnore *

#to skip all gif, zip and txt files from the directory list
#IndexIgnore *.gif *.zip *.txt

#ErrorDocument 404 /notfound.html
ErrorDocument 404 http://localhost/Nilesh/notfound.html

Thanks,  Nilesh

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: