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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.