Skip to content

Instantly share code, notes, and snippets.

@bstonedev
Last active June 19, 2020 22:29
Show Gist options
  • Save bstonedev/696cce529cb63bd1edd29b828d032f00 to your computer and use it in GitHub Desktop.
Save bstonedev/696cce529cb63bd1edd29b828d032f00 to your computer and use it in GitHub Desktop.
WordPress Security Checklist
  • use SFTP (Port: 22) to tranfer files
  • scan for vulnerabilities using WPScan: https://wpscan.org/
  • require 2FA for any users with 'Administrator' access
  • give clients 'Editor' access and below
  • revoke DROP, ALTER and GRANT privileges in MySQL database
  • add define('DISALLOW_FILE_EDIT', true); to wp-config.php
  • setup regular backups via installatron or preferred wp plugin
  • setup firewalls at WordPress level (Wordfence), Web Application level and CDN (if required)
  • remove WordPress version number from header
function wpbeginner_remove_version() {
  return '';
}
add_filter('the_generator', 'wpbeginner_remove_version');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment