batman4ever Posted February 20, 2017 #1 Posted February 20, 2017 Hi I'm working on my website now, and I create a file folder to store all the images for the website. For example : www.mysite.com/image (this is where I store all images.) My question is how to I stop people to access to that directory, but still able to get to images links (www.mysite.com/image/pic1 Is there a way to do it in cpanel? Sorry I'm a newbie in all this web things
Andr-Tech uk666 Posted February 20, 2017 Andr-Tech #2 Posted February 20, 2017 Turn off indexing on your site. From cPanel, the Advanced section, then Index Manager. You can turn it off for your entire site by clicking public_html, then choosing "No Index." There's generally no reason for anyone to be able to get a list of the files in any of your folders, so turning off indexing for the whole site is usually a good idea. It prevents unauthorized "browsing." 3
batman4ever Posted February 23, 2017 Author #3 Posted February 23, 2017 Thank you uk666, it works perfectly. Now I can stop unauthorized access to that directory. 1
datakore Posted February 26, 2017 #4 Posted February 26, 2017 (edited) You can also create a blank .htm file and put it in that directory. This will not allow them to actually see all the content/files/directories that you may have. Thats what I do to my 4images website I use Edited February 26, 2017 by datakore 1
Recommended Posts