• chaim3026

    (@chaim3026)


    Greetings,

    How do I block the possibility for surfers to enter the upload folder and all the files there.
    I tried to play with 755 permissions, but all the pictures were blocked for me to view as well.

    My problem is that when a surfer enters a link to an image uploaded in UPLOAD, I do not want him to go back with the link to find more material.
    I will explain,
    The customer comes to this link:
    site.co.il/wp-content/uploads/2022/02/1.jpg
    He also has access here:
    site.co.il/wp-content/uploads/2022/
    And here too:
    site.co.il/wp-content/uploads/

    And he sees everything …. and I also have materials there that I do not want to get into his hands.
    What can I do?

    Thanks!

    • This topic was modified 3 years ago by Yui. Reason: moved to fixing wordpress
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Yui

    (@fierevere)

    永子

    You can add this line to your .htaccess file
    in the site root (at the very top or at the very bottom, so WP will not overwrite it):
    Options -Indexes

    Alternative: create en empty index.html or index.php file in every folder which you dont want to show directory index.
    (or you can use any content, i.e. redirect with the following meta tag in <head> of index.html)
    <meta http-equiv="refresh" content="0;URL='/'" />

    Thread Starter chaim3026

    (@chaim3026)

    thank you!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘File access permissions’ is closed to new replies.