So, I'm tightening up my site right now and want to stop people browsing folders while allowing the content to still be used on a page.
Example
Say you have at top level a folder ../images which contains all your site images. You want the images to display but don't want people to be able to make changes. Fine set 755 on the folder chmod but... sneaky hacksters poking around can still access the folder typing e.g. mysite.com/images and browse contents, rather than allowing this I want to redirect such requests to a custom "naughty, naughty, naughty!" page whilst still alowing the site to display or use content.
Instinct tells me there's a mod rewrite for this but I need help.
Hi Guys,
So, I'm tightening up my site right now and want to stop people browsing folders while allowing the content to still be used on a page.
Example
Say you have at top level a folder ../images which contains all your site images. You want the images to display but don't want people to be able to make changes. Fine set 755 on the folder chmod but... sneaky hacksters poking around can still access the folder typing e.g. mysite.com/images and browse contents, rather than allowing this I want to redirect such requests to a custom "naughty, naughty, naughty!" page whilst still alowing the site to display or use content.
Instinct tells me there's a mod rewrite for this but I need help.
Any advice would be really helpful!
Thanks.