Skip to content

Commit

Permalink
Hardening wordpress
Browse files Browse the repository at this point in the history
for disallowing edit to theme or plugin files
  • Loading branch information
brown-hub authored Feb 26, 2018
1 parent 8b4dee9 commit b1fa07b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions wp-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@
define('LOGGED_IN_SALT', 'put your unique phrase here');
define('NONCE_SALT', 'put your unique phrase here');


/* Security for Wordpress :
you may wish to disable the plugin or theme editor to prevent overzealous users from being able to edit sensitive files and
potentially crash the site. Disabling these also provides an additional layer of security if a hacker gains access to a
well-privileged user account.
Note : If your plugin or theme you use with your app requires editing of the files , comment the line below for 'DISALLOW_FILE_EDIT'
*/
define('DISALLOW_FILE_EDIT', true);


/**#@-*/

/**
Expand Down

0 comments on commit b1fa07b

Please sign in to comment.