Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Disable Directory Browsing for All but Me

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  mod_rewrite and SEO friendly url  
Author Message
bram1028

External


Since: Jul 20, 2007
Posts: 1



(Msg. 1) Posted: Thu Jul 19, 2007 11:56 pm
Post subject: Disable Directory Browsing for All but Me
Archived from groups: alt>apache>configuration (more info?)

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

 >> Stay informed about: Disable Directory Browsing for All but Me 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Howto disable directory browsing - Hello, I'd like to know how can I avoid directory browsing in my website, and how can I keep only one directory tree browseable. For example I'd like to avoid directory browsing in www.acme.com but you can see everything in www.acme.com/software TIA ..

disable upstream file directory browsing - We have several clients that access a specific folder that is based on their login. The problem is that all of these folders are inside of one large 'customer' folder. We want to make it so that once they select the link to take them to their specific..

Enable directory browsing? - Hi I get the following error message when I call my public webdir without an index.html: --- Forbidden You don't have permission to access /~moeller/ on this server. Apache/2.0.47 (Unix) mod_ssl/2.0.47 OpenSSL/0.9.7 Server --- This worked in the past...

disabling directory browsing - what is the easiest way to disable directory browsing for the entire web server?

Turn off Directory Browsing / Indexing - RH 9.0 Apache 2.0.x I would like to turn off the ability of the general public to come to my web site and browse my directories. I know that putting a index.html inside each subdirectory will solve this but isn't there a configuration option to turn..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]