Wednesday, December 5, 2012

2.1 Make the file under certain folder not accessable directly




      .htaccess

We can modify the .htaccess file to achieve  this.


RewriteEngine On
Options –Indexes
RewriteRule ^(.+)$ /access_file.php [L,R]     
Make sure access_file.php is not in the same folder; otherwise it will generate a redirect loop

No comments:

Post a Comment