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: into (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 he can´t get access by modifing the url to the whole htdocs directory.

Thank you in advance!

Best Regards,
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
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 4 guests