Disable Directory Browsing for All but Me
am 20.07.2007 04:30:40 von bram1028How can I use .htaccess to disable indexing and .php access for
everyone except for a specific IP address. The files inside the folder
still need to be accessible (images, js, css, etc) except for the PHP
files.
Stops indexing, but how do I allow my IP address to get the indexing:
Options All -Indexes
Blocks access to PHP, but I want my IP address to have access:
RewriteRule .*\.php$ - [F]
I'd like to keep it all in an .htaccess file, if possible. For both,
everything is in a directory under the root of the site.
Thanks,
Brad