Topic: blocking is the directory where the images ?

Hello,

I would like to know how to lock the directory where the images are hosted, I want to read:

http://www.sbdownloads.com.br/image/images/imagemeve.jpg

translate image:

access is not allowed in "images"

Sorry, not allowed to access the root directory.


Help me.

Thumbs up

Re: blocking is the directory where the images ?

lock or unlock?

rodolfoberrios.com | PLEASE use Tech Support forums to ask for support!

Re: blocking is the directory where the images ?

lock, not only in the directory the images contained therein.

Thumbs up

Re: blocking is the directory where the images ?

Help sad

Thumbs up

Re: blocking is the directory where the images ?

Create a .htaccess file.

Insert this:

<Files .*>
order allow,deny 
deny from all 
</Files> 

AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi
Options -ExecCGI All -Indexes

MAKE SURE YOU UPLOAD THIS .HTACCESS TO YOUR "IMAGES" AND "THUMBS" FOLDER.

Thumbs up

Re: blocking is the directory where the images ?

ppeared that personalized message

Forbidden

You do not have permission to access / image / images / on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


I want to an error page as it is:
Example: http://www.clafy.com/images/

Thumbs up

Re: blocking is the directory where the images ?

Not sure if your version is the same as mine but try insert these into your htaccess file.

ErrorDocument 400 /index.php?p=400
ErrorDocument 401 /index.php?p=401
ErrorDocument 403 /index.php?p=403
ErrorDocument 404 /index.php?p=404
ErrorDocument 500 /index.php?p=500
ErrorDocument 503 /index.php?p=503


*THE LINES ABOVE SHOULD BE IN YOUR ROOT'S HTACCESS FILE

Last edited by clafy (2009-09-06 00:31:23)

Thumbs up

Re: blocking is the directory where the images ?

I can not make the error pages of the script itself work, what to do?

Thumbs up