Right, I have a tons of sites all organised into folders in my xampp directory. E.g. localhost/site1, localhost/site2 etc.
I need to allow acess to various sites to my boss over a local network. This is fine, I simply replace localhost with my IP address (say 192.168.0.99) and send it over E.g.
http://192.168.1.99/site1
This works fine, my boss could browse a site O'm working on from thier PC with the site hosted on MY pc. However, if my boss was to browse to http://192.168.0.99 they'd see ALL of the my folders - which I don't want.
Without manually password protecting each directory (which I don't want to do as there are close to 1000 folders in there now), how can I resgtrict access to a partocular folders on an ADHOC basis?
Thanks
EDIT: gah what a noob i am! Just need to add a Options -Indexes in a htaccess file, that I plonk into the root directory.
I need to allow acess to various sites to my boss over a local network. This is fine, I simply replace localhost with my IP address (say 192.168.0.99) and send it over E.g.
http://192.168.1.99/site1
This works fine, my boss could browse a site O'm working on from thier PC with the site hosted on MY pc. However, if my boss was to browse to http://192.168.0.99 they'd see ALL of the my folders - which I don't want.
Without manually password protecting each directory (which I don't want to do as there are close to 1000 folders in there now), how can I resgtrict access to a partocular folders on an ADHOC basis?
Thanks
EDIT: gah what a noob i am! Just need to add a Options -Indexes in a htaccess file, that I plonk into the root directory.
Last edited: