I need some help. What is the script to hide contents in your website directories? I had it somewhere but it seems to have vanished and I have nosy people poking around.
if you have a directory on your website like /images/ make an index page for that directory that will either send the traffic to you main index page OR to some other site that you can make sales too.
I have an images folder but also within each directory I have folders with images. I find it more organized that way. I think I will do that as well as the .htaccess just to be on the safe side.
Comments 9
Reply
Reply
You want to ensure that people that put in a url with a directory instead of a file name... don't get to see the list of files?
you need to issue the command (as root)
"chmod 411 directory name" from the superior directory to the ones you want to protect...
AND / OR
you can modify the httpd.conf file in /etc/httpd/conf/ and change the user directory section to turn off "indexoptions".
who will do this for you? or will you do it yourself?
Reply
Would it be easier to just do that .htaccess thing in each directory?
Reply
Reply
Reply
Reply
/images/
make an index page for that directory that will either send the traffic to you main index page OR to some other site that you can make sales too.
Reply
Thank you! :)
Reply
Leave a comment