Jump to content

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!

Link to comment
https://forums.phpfreaks.com/topic/616-http-403-forbidden/
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!

Link to comment
https://forums.phpfreaks.com/topic/616-http-403-forbidden/#findComment-2082
Share on other sites

Archived

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

×
×
  • Create New...

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.