am i able to block all directorys?
Posted by: Jeremy Sweet (---.sip.bna.bellsouth.net)
Date: July 26, 2007 08:50PM

Hello, i am wondering if i am able to block all directorys i don't want users in with this htaccess command?

Options All -Indexes

and where would i put it so it will be global on any domain i use?

i am looking to get it to block say if someone went to /images /directory or /whatever

I already do know if you add the command to each domain your using in httpd-vhosts.conf
that does the trick, but am looking to do it globally.

Options: ReplyQuote
Re: am i able to block all directorys?
Posted by: CyberSpatium (71.237.217.---)
Date: July 27, 2007 12:46AM

in your .htaccess file use allow and deny.

# htaccess file:
Order Allow,Deny
Allow from 127.0.0.1
Deny from all


Explanation:

Allow from 127.0.0.1
localhost (you) who's local IP address is 127.0.0.1 is allowed to access your directories

Deny from all
this means everyone else will not have access.

to protect all your directories, put this .htaccess in your document root directory (c:\wamp\www)



CyberSpatium
----------------------
WAMP English Forum Admin

Need help? Check out my WAMP User Manual/Guide here!


Cellular Phone Deals - The Best on the Net! - FREE PHONES! Take your pick from our featured cellular phone deals by Cingular, Verizon, T-Mobile, Sprint PCS, Nextel, and more! Most of our cellular phone offers include a FREE cellular phone with FREE shipping!


Web Development for Newbie's Blog - Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.


Clarify Loans
Mortgage and Home Loan Advice


LaxGo Web Directory
Powerful human edited web directory of quality, spam-free sites organized via a comprehensive category structure.

Options: ReplyQuote


Sorry, only registered users may post in this forum.