Jump to content

Archived

This topic is now archived and is closed to further replies.

studipskaterkid

HTTP 403 (Forbidden)

Recommended Posts

I\'m wondering how I can restrict people from viewing certain folders. I\'m running apche 2 on win xp. I don\'t want people looking at my images file. Right now they are able to view the images by going www.something.com/images and are getting a list of my images and can view them. I want to restrict people from viewing this folder. I also don\'t want to go through all my folders and put an index page either. I do this with Apche, right? Thanks!

Share this post


Link to post
Share on other sites

in the Directory directive for that folder, you need to remove Indexes.

Share this post


Link to post
Share on other sites

Here\'s a little something I like to do. I create a file named \"index.php\" and inside it, I put the following code:

 

[php:1:6b964ba1b8]<?php

header(\"Location /.\");

 

?>[/php:1:6b964ba1b8]

 

Then, I place this file in every directory of my website that I don\'t want people listing the contents for. It will automatically redirect them to the index of the site.

 

Good luck!

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.