WordPress.org

Ready to get started?Download WordPress

Forums

Protecting my plugin from entry? (2 posts)

  1. matthewordie
    Member
    Posted 1 year ago #

    What can I do to protect my plugin folder? If I go to the directory via the browser I can see all my files right there. I know I could add a blank index.html file but that doesn't seem like enough. Any better suggestions?

    Is there any snippet of code I could put in my plugin files to make sure they aren't accessible without the user being logged in or viewing on the site?

    Thanks

  2. MickeyRoush
    Member
    Posted 1 year ago #

    At the top of your .htaccess file in the root of your theme and the following:

    Options -Indexes

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.