Will protecting wp-config with .htaccess block plugin activation?
I’ve been designing websites for years but am still not great with actual coding so please bare with me…. I’m learning more about securing WP installs and wanted to add the following to .htaccess to secure my wp-config file:
<files wp-config.php> order allow,deny deny from all </files>
But I’m thinking this would interfere with the way I’ve had my first plugin coded… let me explain…
I am directing the development of my first plugin from a pre-written script that has it’s own installation file that usually needs you to hand enter the db details during installation to create the tables. During the WP plugin activation process the plugin writes the wp-config info to the scripts’ options.php file so the script can access the tables on demand.
The script is located in: wp-contents/plugins/myscript/
Q1: Will using the .htaccess command above stop my script from accessing the wp-config during activation?
Q2: Is there a better way to get the script to use wp-config info?
Your advice is greatly appreciated.
- The topic ‘Will protecting wp-config with .htaccess block plugin activation?’ is closed to new replies.