Restrict file in wordpress plugin directory from browsing but allow wordpress to use?

Discussion in 'Apache' started by brazenmedia, Nov 21, 2009.

  1. #1
    I bought a wordpress plugin that stores some info I want to keep private in a text file within its own plugin directory and I don't really want people having the ability to find it and download. I put blank index files in the wp-content, plugins, and specific plugin directory to stop directory browsing, but I'm afraid if someone knew about the plugin and the file structure they could easily browse to it. Not good.

    How can I lock down, either with .htaccess or file permissions the file so that it cannot be grabbed, yet allow wordpress to use it for the plugin?

    Thanks.
     
    Last edited: Nov 21, 2009
    brazenmedia, Nov 21, 2009 IP