Page 1 of 1

Prevent users surfing my /htdocs dir

PostPosted: 17. April 2011 16:03
by alessandro80
Hi all,

i run xampp with several vhosts. One thing i want to change is that if a user modifys the domain adress for example:

http://www.myweb.com into www2.myweb.com (and this page/domain isnt found) he can browse the whole /htdocs/site-a site-b site-c directory.
Wehre can i config this that if a users surfs my domain http://www.myweb.com he canĀ“t get access by modifing the url to the whole htdocs directory.

Thank you in advance!

Best Regards,
Alessandro

Re: Prevent users surfing my /htdocs dir

PostPosted: 09. November 2011 17:10
by bl4d3 x
Add this
Code: Select all
#Disable Directory Browsing
Options -Indexes


To your .htaccess file in your root :D

tried and tested here try for your self http://phpbbcodes.dyndns.org/images/