in my server I have a series of folders. I would deny the access to all this folders. How can I do? What rule I have to use?
add one line in your .htaccess root:
deny from all
@QUESTION:
if you want to retain access for yourself:
allow from 192.168.1.1
subsitute in your real IP for the one i gave in the example.
so all together:
deny from all
allow from YOUR_IP
@QUESTION2:
if you deny access to a directory, you are denying access to all of the nodes in that directory like the "pages". if you are saying you want to deny access to a folder in the same level directory as the pages, move the htaccess to inside of that folder (simplest)
@EDIT:
Open your .htacces file
Look for Options Indexes
If Options Indexes exists modify it to Options -Indexes or else add Options -Indexes as a new line
The directory browsing feature should be disable by now
http://www.techiecorner.com/106/how-to-disable-directory-browsing-using-htaccess-apache-web-server/
Add this to your .htaccess file,
Options -Indexes
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With