Click to See Complete Forum and Search --> : how define a 403 Forbidden Error


jason213123
04-03-2008, 11:12 AM
hi,
i creating a site that i want add a directory with many videos and folders
but i donīt want that anyone can see the directory list
i just want that people can acess the videos using the link complete
like this:
www.asd.com/videos/videoxpt
and when try to acess this:
www.asd.com/videos/

the error 403 Forbidden Error. appear to this user and if possible notify me that some user as tryed to acess this directory and block the ip when he try more that x time.

i know that is possible be using the httpd.conf but but i donīt know what i need change :confused:
anyone can help me?
thanks a lot:)

Amahdy
04-04-2008, 07:23 AM
disallow the indexing of this directory :


Option All -Index


in the htaccess file .

davesd
04-05-2008, 06:23 AM
hey, what you could also do is have the videos so that they are in a directory that the users cannot access at all, it will save you having to set up a 403 error.

When you go into your ftp account, when you first log in, this is your root directory, then to put pages up you go to the folder public_html.

What i suggest is, and what i do for my websites, is instead of having the videos in the public_html folder have it in the root folder.

dave

Amahdy
04-05-2008, 09:06 PM
dave; that's only when you have a personal server or an advanced / dedicated hosting .. but generally most of normal shared-hosting provide only access to what's inside the public_html ... so when you log from the ftp , your home folder is inside the pub and you can not access anything else .

if you wanna protect files at all from being downloaded you can password the folder and when requesting a download, just read the file and gather it out to the user ... that's better because if the user know the path and wanna acces s the video .. he will do it disregarding the less indexing .