Preventing pages from being accessed
July 11, 2007
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?
Digg It
Save This Page
Sphinn It
Stumble it!
Favorite This Post

Posted in 


content rss