Secure WordPress on web hosting
Harden WordPress: updates, 2FA, connection limitation, wp-config, backups and HTTPS mandatory.
Ready to start your service? Check offers and order online.
View offers and orderSecure WordPress on web hosting
WordPress represents a majority of sites on web hosting Mutualized and attracts automated attacks. This guide hardens your WordPress installation at Anthony IT Solutions without compromising performance.
Combine good panel practices (SSL, SFTP, backups), WordPress configuration and lightweight security plugins for a resilient site.
What you need
Basic hardening
-
HTTPS
Forcing HTTPS all over the site.
-
Identifier
Single entry; no
admin; passwords 16+ characters. -
Updates
Core, themes, plugins, weekly minimum.
-
Remove
Unused themes/plugins; obsolete user accounts.
wp-config.php
-
Salt keys
Regenerate on api.wordpress.org if compromised.
-
DISALLOW_FILE_EDIT
define('DISALLOW_FILE_EDIT', true);blocks the admin file editor. -
Debug off
WP_DEBUG false in production.
-
Prefix tables
Change
wp_at the installation (difficult migration after).
Limiting attack vectors
-
xmlrpc.php
Disable if unused, htaccess.
-
wp-login
Limit attempts (plugin or Cloudflare).
-
REST API
Restrict if showcase site without public API.
-
Listing
Options -Indexesin .htaccess.
Recommended Safety Plugins
- Wordfence or Solid Security, light scan
- No duplicate with LSCWP cache, cache
- 2FA on admin accounts
- Journaling failed connections
Permissions and SFTP
- **Monitoring**, see detailed procedures.
-
Files 644
Records 755, no 777.
-
wp-config
440 or 644 depending on the host.
-
Uploads
Do not check for PHP executable in uploads.
-
SFTP
SFTP, dedicated account, not shared.
Troubleshooting
- Brute-force login, 2FA + IP limit.
- Malware uploads, MIME types, scan, not PHP in uploads.
- Plugin vulnerable, MAJ or replacement.
- Site disfigured, Restore backup; forensic analysis.
Frequently Asked Questions
Wordfence slows down?
Configure night scan; LiteSpeed compatible.
Hide wp-admin?
Posible via plugin; lockout risk, backup access.
SSL is enough?
No, encryption
Hosting mutualized secure?
Yes with WordPress hygiene; isolation counts per client.
Related guides
See also our web hosting offer and all the procedures on wiki web hosting.