Page 1 of 1

how to hide jpeg from directory

Posted: Thu Mar 10, 2011 3:10 am
by nickjonnes
hey all,
i have an issue, i have a directory site called hackingtoolz.tk and if you go to it, you will see a list of folders as it is just a directory the problem is how to i stop the banner from apearing in the directory.
i have tried changing the chmod to 4000 and that just made the jpeg stay their and the banner screw up
if you go to the site you will understand what i mean better
hope you can help
cheers nick

Re: how to hide jpeg from directory

Posted: Thu Mar 10, 2011 9:47 am
by pickle
Make the file not readable by your web user.

Re: how to hide jpeg from directory

Posted: Thu Mar 10, 2011 9:38 pm
by nickjonnes
what?
how you do that?

Re: how to hide jpeg from directory

Posted: Fri Mar 11, 2011 9:42 am
by pickle
Hmmm, after re-reading your post - my suggestion won't fix anything. You could change the permissions so Apache can't read the file...but then Apache won't be able to read the file when it's outputing it in the page. I think the best solution would be to segregate any site files (css, that image, etc) outside the directory you're listing up to users.