Page 1 of 1

403 Forbidden

Posted: Sat Jul 26, 2014 10:52 pm
by neo
Hi! Just a quick question ~
I am wondering how to make directories inaccessible to people visiting my sites like "/images".

I guess it just feels kind of personal and I don't want anyone accessing it?

I have a 403 forbidden page, but it doesn't actually keep you from getting into the directory? Is there something else I need to do?

Thanks a bunch in advance if anyone knows :)

Re: 403 Forbidden

Posted: Sat Jul 26, 2014 11:00 pm
by Mikari
If there's no index the .htaccess usually kicks in and redirects. I haven't tested this, so I don't know if/how it works, but I found this page about preventing directory listings and this other one about deniying access to folders. Both are related to the .htaccess file. Sorry I couldn't be more helpful, I haven't tried to do this before.

Re: 403 Forbidden

Posted: Sun Jul 27, 2014 10:07 am
by nyxmidnight
Mikari is right, you need an .htaccess file to prevent people from looking at your directory. OR you can make a blank index page and put it in every directory you don't want people looking into :D