Jump to content

Recommended Posts

Probably not the right forum, sorry.

Say i have this site:
http://example.com/

The main logo image, is located in http://example.com/images/logos/

Anyone using firefox can right-click the image and select 'view image', opening the image in the browser with the full url on the address bar, like so:
http://example.com/images/logos/someimage.jpg

so if the person deleted 'someimage.jpg' from the address bar, he will be in "http://example.com/images/logos/" viewing all of its contents.

How can i stop that? i set chmod to 711, but then index.php will give me this error:
[quote]Warning: opendir(./images/logos/): failed to open dir: Permission denied in /hsphere/local/home/me/example.com/includes/classes.php on line 13
Could not open directory for main image selection.[/quote]

classes.php is where i have the script to open and select a random image from the logos folder.


I would post my actually site here, but then people could navigate through my files, and i'd rather not let that happen.
I will gladly PM it if needed.

Thank you.
Link to comment
https://forums.phpfreaks.com/topic/21494-chmod-help/
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.