Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 26
  1. #11
    Join Date
    Sep 2006
    Location
    Ruckersville, VA, USA
    Posts
    286
    Plugin Contributions
    0

    Default Re: Protect images directory

    Quote Originally Posted by underworldmagic View Post
    They all show up as red X's ONLY when i change the image directory to 644, it is now on 777 thats why there are no Xs showing.

    this is where the problem is, 777 is not safe to keep, yet images show on the website as they are supposed to but when i try to use secure permissions (644) i get red Xs.
    Let's regroup... I do not really understand something. Please try to answer a few questions...
    What are you trying to protect the images from? What I mean is, are you trying to prevent someone from downloading your images? Or are you trying to prevent someone from copying your images? If a person can view your image, they can copy it, print screen it, but they cannot modify it if they do not have file access (like you do). That is why I suggested you use 770 and the index.html file.
    Please help me to better understand what it is you are trying to do.
    Respectfully,
    jund

  2. #12
    Join Date
    Nov 2005
    Posts
    110
    Plugin Contributions
    0

    Default Re: Protect images directory

    thanks for your reply,

    i have been following this guide by zencart for recommendations on how to secure your website from hacks

    https://www.zen-cart.com/tutorials/index.php?article=73

    if you go down to the "9. Protect your "images" and other folders" it tells you instructions to change the images folder from 777 to 644, thats the only reason why i wanted to change the permissions; because zencart recommends it.

    i hope you understand what, and why i want to achieve this.

    Thanks again for your continued help

  3. #13
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Re: Protect images directory

    655 will work and still prevents others from writing to it.
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

  4. #14
    Join Date
    Sep 2006
    Location
    Ruckersville, VA, USA
    Posts
    286
    Plugin Contributions
    0

    Default Re: Protect images directory

    Quote Originally Posted by underworldmagic View Post
    thanks for your reply,

    i have been following this guide by zencart for recommendations on how to secure your website from hacks

    https://www.zen-cart.com/tutorials/index.php?article=73

    if you go down to the "9. Protect your "images" and other folders" it tells you instructions to change the images folder from 777 to 644, thats the only reason why i wanted to change the permissions; because zencart recommends it.

    i hope you understand what, and why i want to achieve this.

    Thanks again for your continued help
    The article is correct - if you read further...

    Continue to read and you will see this:
    File/Folder permissions settings

    On Linux/Unix hosts, generally, permission-setting recommendations for basic security are:
    • folders/directories: 755
    • files: 644
    Did you not state you were using Linux/Unix?

    I am including an upload of a permissions set-up on my site... note what the permissions do - and everyone has tried to help you understand that too...
    Attached Images Attached Images  

  5. #15
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Protect images directory

    Jund 644 will not work on all server setups,
    Some servers require 777 for the images to work,

    websiterob has an htaccess code that will help to secure this folder from people dropping code into it it limits the files that can be in the folder to image types
    gif jpg png and bmp
    Zen cart PCI compliant Hosting

  6. #16
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Protect images directory

    Make sure your http server (assuming apache) is the owner, or in the owner-group of the files and folders.

    I once made a mistake: I uploaded ZC zip file by ssh under root user, unzip it and found out that apache can not access them *_*.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  7. #17
    Join Date
    Sep 2006
    Location
    Ruckersville, VA, USA
    Posts
    286
    Plugin Contributions
    0

    Default Re: Protect images directory

    Quote Originally Posted by Merlinpa1969 View Post
    Jund 644 will not work on all server setups,
    Some servers require 777 for the images to work,

    websiterob has an htaccess code that will help to secure this folder from people dropping code into it it limits the files that can be in the folder to image types
    gif jpg png and bmp
    Thanks for the backup Merlin - I appreciate it...
    The problem is that in some of the literature forom her, it leads one to believe it will.
    Hope you are well... and again, thanks for watching my back.
    jund

  8. #18
    Join Date
    Nov 2005
    Posts
    110
    Plugin Contributions
    0

    Default Re: Protect images directory

    THANK YOU!!!

    thanks so much i have done this:

    folders/directories: 755
    files: 644

    and it has worked

    thanks so much for your help

    BTW im using Linux server

  9. #19
    Join Date
    Feb 2007
    Location
    baltimore, md
    Posts
    41
    Plugin Contributions
    0

    Default Re: Protect images directory >> CANNOT RESET!

    Hello! I hope someone can help me! I did the exact same thing... following that security article. Now my images are not showing up at all, nor can I access the images folder to set the permissions back! I get an error message saying:

    "Fetch could not open the folder 'images' because the FTP server says that the requested item was not a folder or could not be accessed. If you entered a folder name or URL, check that it is correct. Server responded: 'images: No such file or directory'."

    I did set the permissions to 644, so I should still be able to read and write to that folder, right?!

    Please tell me I have not completely messed myself up!

    www.chacha-vintage.com is my website.

    Thank you for your help!!

  10. #20
    Join Date
    Sep 2006
    Location
    Ruckersville, VA, USA
    Posts
    286
    Plugin Contributions
    0

    Default Re: Protect images directory >> CANNOT RESET!

    Quote Originally Posted by chacha-vintage View Post
    Hello! I hope someone can help me! I did the exact same thing... following that security article. Now my images are not showing up at all, nor can I access the images folder to set the permissions back! I get an error message saying:

    "Fetch could not open the folder 'images' because the FTP server says that the requested item was not a folder or could not be accessed. If you entered a folder name or URL, check that it is correct. Server responded: 'images: No such file or directory'."

    I did set the permissions to 644, so I should still be able to read and write to that folder, right?!

    Please tell me I have not completely messed myself up!

    www.chacha-vintage.com is my website.

    Thank you for your help!!
    It looks like you may have put your store images in the wrong place...

    This is where you have stored your home page image:
    http://www.chacha-vintage.com/shop/i...come_image.jpg
    If you click on this you will see your image...

    Note: It is using the ROOT OF YOUR STORE template.

    However, here is where it is looking for your product images:

    <img src="images/categories/IMG_93481-dual.jpg"
    http://www.chacha-vintage.com/images...93841-dual.jpg

    This is pointing to your root images/categories folder - and I do not think that is correct. If you click on this you will get a 404 error - file not found...

    Where is your images folder located?

    jund

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Copy protect copyrighted images
    By LinDAvid in forum General Questions
    Replies: 11
    Last Post: 8 Jul 2008, 02:25 PM
  2. Password protect a directory?
    By thesoapycauldron in forum General Questions
    Replies: 1
    Last Post: 6 Jul 2008, 03:41 AM
  3. Copy Protect images
    By [email protected] in forum Basic Configuration
    Replies: 2
    Last Post: 6 Nov 2006, 10:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg