Jump to content

how I can prevent browse of my images folder


isaac_cm

Recommended Posts

I have my site online now and I worried about hacks so I should prevent direct access to my images folder , I tried to use .htaccess and it work but since my home page and my templates use images in this folder , now every one try to visit my site will be prompt for user/pass

I was told I have to move my /images folder outside my root folder , for example my root folder is "root" so I have to move images outside "root" and write script to make the images refer correctly to the new place

the problem I do not know what should I do, I know php but I need only highlight steps

thanks
Link to comment
Share on other sites

If you manage to block them from getting into your images directory, you could then use .htaccess and an Apache Mod_rewrite and block hotlinking to the images.

I don't have my sample of denying hot-linking of images/pdfs because my server is currently down until I go in tomorrow to turn it on.
Link to comment
Share on other sites

it seems that there is no solution for this security problem

In case someone subscribe to my newsletter and receive email from me  he will simply will right click on the image and know the link to my site logo so he can use this link and send emails to my customers to fraud them as it was from me

any idea ?
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.