1.Remove any Pirated Plugins or Themes (Pirated files will have malicious Code injected)
2.Keep your Files up to date.WP Core,Themes and Plugins
3.Add Cloudflare to your website to protect from any attacks (cloudflare.com)
4.Add robots.txt to control unwanted Bot access
5.Use WP Cache Plugin
6.Remove any unused themes.Remove Unused Theme or plugin which are not installed or no need for your use
WP Cache Plugins :
https://wordpress.org/plugins/wp-super-cache/
Block XMLRPC File to Protect from Attack :
https://wordpress.org/plugins/stop-xmlrpc-attack/
Control your Ajax Issues :
https://wordpress.org/plugins/heartbeat-control/
Disable the WP-Cron and activate normal cPanel Cron
Disable WP-Cron in config file
- Open your wp-config.php file with the cPanel File Manager Code Editor
-
Go to the bottom of the database settings in wp-config.php typically around line 37.
Add the code below highlighted in red:
/** The Database Collate type. Don't change this if in doubt. */ define('DB_COLLATE', ''); define('DISABLE_WP_CRON', true);
- Click Save
Regards