403 Forbidden

Everything related to the visual and coding aspects of websites.
Post Reply
neo
Posts: 200
Joined: Tue Jun 04, 2013 12:30 am
Location: USA
Contact:

403 Forbidden

Post 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 :)
VICTORY WITH EVERYTHING WE HAVE
Mikari
Posts: 3159
Joined: Thu Jun 21, 2012 6:30 pm
Location: Coruscant
Contact:

Re: 403 Forbidden

Post 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.
nyxmidnight
Communications Staffer
Posts: 1078
Joined: Sat Oct 13, 2012 7:55 pm
Location: Canada
Contact:

Re: 403 Forbidden

Post 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
Join in the Tale, in the Blight, of Conquest and Lies
Come the Sun, to Tarnish in the Sky
Vow that we shall Tear the Light - Dark seizes the Throne
Lost in thoughts, all alone
Post Reply