• Resolved Kathy

    (@wpzones)


    Hello

    I’m concern about directory indexing.

    I am checking my site like this http://mydomain.com/wp-includes/

    And here is screenshot – https://prnt.sc/ju73wi

    Anyone can access all files.

    But In Yoast, It generates blank page.

    What is good practice, Or Any chance to index directory?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hi @wpzones,

    It’s best to disable directory listings on WordPress websites. Your hosting provider should’ve taken care of this, especially since they give PHP access.

    Nevertheless, it can also be enforced with this single .htaccess rule:

    Options -Indexes
    

    Then, accessing that folder should generate a 404 error — this is desired.
    Please contact your hosting provider if you’re having issues adding the rule.

    I hope this helps! Good luck 🙂

Viewing 1 replies (of 1 total)

The topic ‘About Directory Indexing’ is closed to new replies.