ZEROLAG

The right name for your project

Find a domain and check its availability with ZEROLAG.

Give your project a name.

Enter a domain name to check its availability.

How to secure a WordPress site after installation

Managing a website in WP Toolkit.
Back to articles
Article contents

A fresh WordPress site is quick to launch, but its default settings need attention right away. Bots can attempt logins, scan for vulnerable plugins and look for exposed files as soon as the site is online.

secure WordPress does not mean a single magical setting. Means several layers: updates, powerful passwords, correctly configured users, 2FA, SSL, backup, reliable plugins, correct permissions and a hosting that helps protect.

In this guide we begin exactly with the steps you should take after a new WordPress installation, then explain why each measure matters and how a well-configured hosting environment helps you.

In short: what do you do immediately after installing WordPress?

If you just installed WordPress, start with these steps:

  1. delete users, themes and plugins you do not need;
  2. change the default user's name if you used admin;
  3. set long and unique passwords for all administrators;
  4. activate two-step authentication for important accounts;
  5. activate SSL and force HTTPS;
  6. update WordPress, themes and plugins;
  7. install only necessary and reliable plugins;
  8. configure automatic backup, preferably off-site;
  9. deactivate the file editor in the dashboard;
  10. verify the permissions of files;
  11. limit the XML-RPC if you do not need it;
  12. uses a hosting that provides isolation, malware scan, backup and network protection.

Not all these things are complicated. Many can be made directly from WordPress, cPanel or the hosting panel. The important thing is not to delay the security until there's a problem.

1. Clean WordPress installation immediately after setup

After installation, WordPress can come up with default themes, preinstalled plugins, demo pages or test content. It's not a problem in itself, but anything you don't use should be eliminated.

The fewer parts you have installed, the fewer things you have to maintain. Each theme or plugin added means additional code, possible updates and possible vulnerabilities over time.

What are you doing?

  • delete the topics you do not use;
  • maintain only the active theme and possibly a reserve default theme;
  • delete inactive plugins;
  • delete pages and demos;
  • check that there are automatically created users you do not need;
  • correctly set the website title and administrative email address.

A clean site is easier to manage, easier to secure and easier to check when a problem occurs.

2. Avoid the default admin username and limit administrator access

One of the simplest things you can do is avoid the username. admin. It's not enough for security, but it reduces some of the automatic attacks that try common combinations.

More important is having as few accounts as possible as the Administrator. A compromised administrator account can modify the site, install plugins, change the theme, add new users or inject malicious code.

Recommendations for users

  • use a unique username for the administrator;
  • not use the same account for more than one person;
  • create separate accounts for each user;
  • offers the role of Administrator only to people who really need it;
  • delete or disable old accounts;
  • regularly review the user list.

For authors, editors or collaborators, use the right roles. Not everyone needs full access.

WordPress Rol When you use it Recommendation
Administrator Site Owner, Technical Manager Use as few administrator accounts as possible.
Editor Persons managing the content Good for content teams without critical access to plugins and themes.
Author Persons publishing their own articles Suitable for individual authors.
Contributor Collaborators who write but do not publish directly Useful when you want approval before publication.
Subscriber Simple users You don't offer bigger roles for no reason.

3. Use strong passwords and activate 2FA

Poor passwords are one of the most common problems. If you use short passwords, re-used passwords or easy to guess data, the risk increases significantly.

Use a password manager and generate long, unique passwords for each account. For administrator accounts, activate two-step authentication.

Minimum recommendation

  • long, unique password generated automatically;
  • 2FA for administrators;
  • separate accounts for each person;
  • without passwords sent by chat or unencrypted email;
  • change of passwords after any suspicion of unauthorized access.

2FA doesn't make the site invincible, but it reduces the risk that a compromised password will provide full access to the dashboard.

4. Enable SSL and enforce HTTPS

HTTPS is mandatory for a modern site. Protects communication between browser and server, inspires trust and is essential for forms, login, client accounts and checkout.

After installation, check that the site opens correctly on https:// and if all pages redirect to the secure version.

Important checks

  • the SSL certificate is active and valid;
  • The website opens on https://;
  • HTTP redirect to HTTPS;
  • area /wp-admin use HTTPS;
  • there is no mixed content.

Mixed content appears when the page is on HTTPS, but uploads images, scripts or CSS files via HTTP. This can produce warnings in the browser and must be corrected.

5. Update WordPress, themes and plugins

Updates are one of the most important security measures. Many WordPress attacks use already known vulnerabilities for which there are patches, but the affected sites have not been updated.

Don't delay the updates for months. If a plugin has a known vulnerability and remains unupdated, attackers can automatically scan the Internet for vulnerable sites.

Recommended process for updates

  1. make backup before important updates;
  2. update less critical plugins first;
  3. update the theme and WordPress core;
  4. check the homepage, forms and important pages;
  5. if you have WooCommerce, test the basket and checkout;
  6. If a problem arises, restore backup or investigate the conflict.

For simple sites, updates can be made directly from dashboard. For WooCommerce stores or important sites, it is safer to use staging or updates during a period of less traffic.

6. Install only necessary and reliable plugins

Plugins are useful, but must be chosen carefully. An unupdated, abandoned or downloaded plugin from unofficial sources can become a real security issue.

Don't install plugins just because they seem useful. If a function is already offered by the theme, hosting or an existing plugin, you may not need another one.

What are you checking before you install a plugin?

  • when last updated;
  • whether it is compatible with your version of WordPress;
  • whether it has an active review and installation;
  • whether the developer appears active;
  • if the plugin is even necessary;
  • if there are simpler alternatives.

Avoid completely nulled or pirated plugins. Even if they seem free, they may contain malicious code, backdoors or hidden changes.

7. Set up backups before you need them

Backup is one of the most important parts of security. It doesn't help to prevent all the problems, but it helps to come back quickly if something goes wrong.

An update can fail. A plugin can ruin the site. A user can delete files. A site can be compromised. Without backup, a small problem can become a big waste of time and money.

What should include the backup?

  • WordPress files;
  • the database;
  • uploaded files in the library media;
  • the active theme;
  • plugins;
  • important configurations.

Backup local vs backup offsite

A local backup, kept on the same server, is better than nothing, but is not enough for serious scenarios. If the server has a major problem, you can lose both the site and the backup.

Offsite backup means that a copy is kept separately from the main server. For business sites, online shops or important projects, this is much safer.

8. Disable the dashboard file editor

WordPress allows, by default, to edit some theme files or plugin directly from the dashboard. If an administrator account is compromised, this function may be used to enter malicious code.

For many sites, it is safer to disable the file editor. You can do that by adding the next line in wp-config.php:

define('DISALLOW_FILE_EDIT', true);

Add line before comment:

/* That's all, stop editing! Happy publishing. */

Attention: edit wp-config.php Careful. A syntax error can affect the functioning of the site. Make backup before modification.

9. Check file permissions

Permissions of files control who can read, modify or execute files on the server. Too wide permissions can create risks, especially in shared environments or on websites with many plugins.

As a general rule, avoid permissions 777. They are rarely needed and can allow files to be modified by processes that should not have this access.

General recommendation

  • directory: usually 755;
  • files: usually 644;
  • wp-config.php: as restrictive as possible, depending on the server;
  • avoid 777Especially permanently.

Permissions can vary according to server, PHP handler and control panel. If you're not sure, ask for help before you change the permissions all over the site.

10. Limit XML-RPC if you do not need it

XML-RPC is a WordPress function used for some external integrations, mobile applications or services such as Jetpack. In many common sites, it is not used.

If you see any suspicious traffic xmlrpc.php Or you don't need this job, it's worth limiting it. Don't disable it without checking if your website depends on it.

When is the XML-RPC worth limiting?

  • you don't use the WordPress mobile app;
  • do not use Jetpack or integrations that depend on XML-RPC;
  • see many requests to xmlrpc.php;
  • The site receives repeated authentication attempts.

XML-RPC may be limited by security plugins, server rules or hosting configurations.

11. Protect the login area

WordPress login page is one of the most attacked areas. It doesn't have to be completely hidden, but it has to be properly protected.

Useful measures

  • activate 2FA for administrators;
  • limit repeated login tests;
  • do not use the user admin;
  • use long and unique passwords;
  • delete inactive accounts;
  • monitor suspicious authentication.

Changing the login URL may reduce visible automatic attacks, but should not be treated as a main measure. More important are strong passwords, 2FA and limitation of authentication tests.

12. Use a security plugin as one layer of protection

A security plugin can help scan, limit logins, notifications, hardening or blocking suspicious requests. However, a plugin cannot compensate for an unupdated site, weak passwords or missing backup.

The safety plugins must be regarded as an additional layer, not as the only protection.

What can a security plugin do?

  • limit login tests;
  • send alerts to suspicious activity;
  • scan modified files;
  • assist in hardening configurations;
  • can block some suspicious demands.

Do not install more security plugins that do the same. Conflicts, unnecessary consumption of resources or hard-to-interpret alerts may arise.

13. Special security for WooCommerce

WooCommerce needs extra attention, because it manages products, customers, baskets, orders, payments and transactional emails.

A simple WordPress site can be restored more easily if anything breaks down. At WooCommerce, you have to pay attention to orders, stocks, client accounts and recent data.

Recommendations for WooCommerce

  • make backup before important updates;
  • test the checkout after updates;
  • uses HTTPS throughout the website;
  • activate 2FA for administrators;
  • avoid unknown payment plugins;
  • monitor the transactional emails;
  • Use properly configured cache without affecting the basket and checkout.

For active shops, it also matters a lot: sufficient resources, Redis Cache, NVMe storage, off-site backup and fast restoration possibility.

14. Choose a host with security controls

WordPress security doesn't just depend on the site. It also depends on the hosting environment: isolation between accounts, updated PHP versions, SSL, backup, malware scan, network protection and restoration possibility.

A good hosting doesn't guarantee that the site can't be attacked, but it gives you a stronger base. For WordPress and WooCommerce, it is especially about stability, cachet, backups and resource insulation.

What should you look for in a hosting provider?

  • Updated PHP versions;
  • SSL easy to activate;
  • automatic backup and clear restoration;
  • Offsite backup for additional safety;
  • the isolation of resources between accounts;
  • web server performance;
  • Fast storage NVMe;
  • Redis Cache for dynamic sites;
  • Malware scanning and server-side protection;
  • anti-DDoS protection at network level.

At ZEROLAG, WordPress hosting uses technologies such as LiteSpeed, CloudLinux, Imunify360, Redis Cache, NVMe storage, Softaculous and JetBackup configured with off-site backup. Together, they help in performance, isolation, malware scan, simpler administration and safer restoration when problems arise.

LiteSpeed helps with performance and cache, CloudLinux helps to isolate resources in shared hosting environments, Imunify360 adds server side protection and malware scan, Redis Cache can reduce database load, and JetBackup offsite provides a safety net for restoration.

In addition, anti-DDoS protection at network level helps reduce the impact of volumetric attacks on hosted services.

Important: no security system guarantees absolute protection. Even with Imunify360, backup, CloudLinux and anti-DDoS, the site must be maintained correctly: updates, strong passwords, 2FA, trusted plugins and responsible administration.

15. What do you do if the WordPress website has been compromised?

If you notice strange redirectories, unknown users, suspicious files, injected pages or malware warnings, do not ignore the problem. The sooner you react, the less impact.

Recommended steps

  1. place the site in maintenance if it affects visitors;
  2. change the passwords for WordPress, cPanel, FTP / SFTP and database;
  3. verify users acting as Administrator;
  4. make a copy of the site for analysis;
  5. scan the files and database;
  6. delete suspicious plugins or themes;
  7. Restore from a clean backup if possible;
  8. update WordPress, plugins and themes;
  9. check Google Search Console, whether the site has been marked;
  10. identify the entry point, not just delete the infected files.

If you don't identify the cause, the site can be compromised again. The restoration should therefore be followed by updates, user verification, password change and scan.

16. Quick checklist to secure WordPress

Use the list below as a quick check for a new or existing WordPress site:

  • WordPress is updated;
  • the plugins and themes are updated;
  • unused plugins are deleted;
  • there are no plugins or nulled themes;
  • administrators use strong passwords;
  • 2FA is active for important accounts;
  • the roles of users are correct;
  • the site uses HTTPS;
  • there is automatic backup;
  • the backup is kept off-site;
  • the login area is protected;
  • XML-RPC is limited if not used;
  • the file editor is disabled;
  • the permissions of the files are correct;
  • hosting includes malware scanning or server-side protection;
  • There is a clear possibility of restoration.

17. Final recommendation

Security of a WordPress site starts immediately after installation. Clean installation, configure users, activate SSL, use strong passwords, activate 2FA, configure backup and install only reliable plugins.

Security must then be maintained: regular updates, user verification, backups tested, malware scan and attention to installed plugins.

Well-configured hosting helps, but the site still needs regular maintenance. Keep WordPress up to date, choose reliable hosting, keep off-site backups and combine server-side protection with good administrative practices.

Choose the next step
for your project.

Explore the relevant service or discuss your requirements with us.

Explore your options