Skip to content
WJunction - Webmaster Forum

Litewarez'es Top Tip! (Hide your files)

Status
Not open for further replies.
My Top Tip.

Ever noticed how some directories are visibly on your site, well this helps hackers see where your files am and what your file names are, such as db.php / connect.php

this allows him to know what file he is trying to attack!

now the one method that is used to HIDE these files is by placing a blank html file in each directory to counter this

BUT I HAVE BETTER WAY

in your htaccess file add this line

Code:
Options -Indexes

This sets the Option of Indexes off so indexes are not shown and the browser will get a 403 forbidden!

no what else you want to do is create an html file called 403 and place it on your server some where and then add this line to your htaccess file

Code:
ErrorDocument 403 403.html

Witch will show them your html file recursively throughout your site :)

Hope you likey :)
 

2 comments

Yep good one, I came across this somewhere using google when searching for ways to secure my WP blog.
 
Status
Not open for further replies.

About the author

L
Active Member · Joined
I am a skilled programmer within PHP,HTML,CSS,MYSQL and also the owner of several websites Programming, Football...
1,367
Messages
1
Reactions
38
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom