Apache Server configuration support - Disable Directory Browsing for All but Me

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > August 2007 > Disable Directory Browsing for All but Me





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Disable Directory Browsing for All but Me
bram1028@gmail.com

2007-07-20, 1:24 am

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

bram1028

2007-08-17, 7:27 am

You people suck...

David McKenzie

2007-08-17, 7:27 am

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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com