Disable Directory Browsing for All but Me

Disable Directory Browsing for All but Me

am 20.07.2007 04:30:40 von bram1028

How 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

Re: Disable Directory Browsing for All but Me

am 17.08.2007 09:45:37 von bram1028

You people suck...

Re: Disable Directory Browsing for All but Me

am 17.08.2007 09:51:43 von David McKenzie

bram1028 wrote:
> You people suck...
>
What people would that be that engage in sucking?

--
DM davidm@cia.com.au

'It would go against respecting principles and truth if you have to
respect and accept anything just because it is the other side's view.'
- Kim Jung Ill