Preventing pages from being accessed

Date July 11, 2007

Stumble it!

Enter your email address & Get Updates:

Four simple solutions:

1) Put it above the web root - when you go with FTP you probably have to click into ‘html’, ‘www’, ‘httpdocs’ or similar to get to the directory where your index file goes. Assuming this is the case, put the file ABOVE that directory, i.e. where it is inaccessible via your domain name. Read it by FTP download.

2) Use a MySQL database and store the file in there

3) Rename text.txt to text.php - for security - add < |?php die();?|> (remove the | codes) to the top - then anyone who visits will see nothing at all - and when you download via FTP you will get everything.

4) Use a .htpasswd and .htaccess combination - use your favorite Search Engine to find out more about these - they are simple password protection for the directory

Want One of the Cheapest and Affordable Hosting?



What Next?


 Subscribe To GoogleLady

 Digg It

 Save This Page

 Sphinn It

 Stumble it!

 Favorite This Post

 

Get Updates In Your Email

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>