Prevent users surfing my /htdocs dir

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Prevent users surfing my /htdocs dir

Postby alessandro80 » 17. April 2011 16:03

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
alessandro80
 
Posts: 1
Joined: 17. April 2011 15:59

Re: Prevent users surfing my /htdocs dir

Postby bl4d3 x » 09. November 2011 17:10

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/
ubuntu 11.10 xampp 1.7.7
bl4d3 x
 
Posts: 21
Joined: 22. October 2011 18:18
Operating System: linux (Ubuntu 11.10)


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 47 guests