How to Protect a WordPress Site from Hackers via @martinibuster - Website Pro USA
Website Builder,SEO,Social Media Consultant, Hosting, Website Care Plans
46954
post-template-default,single,single-post,postid-46954,single-format-standard,theme-bridge,woocommerce-no-js,ajax_updown,page_not_loaded,,qode-content-sidebar-responsive,columns-3,qode-child-theme-ver-1.0.0,qode-theme-ver-9.2,hide_inital_sticky,wpb-js-composer js-comp-ver-7.9,vc_responsive

How to Protect a WordPress Site from Hackers via @martinibuster

How to Protect a WordPress Site from Hackers via @martinibuster

WordPress is a frequent target for hacking. Hackers are targeting the theme, the core WordPress files, plugins and even the login page. These are the steps to take to make it less likely to be hacked and to be able to recover easier if it should still happen.

Advertisement
Continue Reading Below

How Hackers Attack WordPress

All sites on the web are under constant attack, whether it’s a phpBB forum or a WordPress site, all sites are being probed by hackers. It’s not unusual for a hacker to scan thousands of pages or try to login in hundreds of times a day.

And that’s just one hacker. Sites are under attack by several hackers at the same time.

Typically it’s not a person who is trying to hack you. Hackers employ automated software to crawl the web to probe for specific weaknesses in website.

These automated software programs crawling the web are called bots. I call them hacker bots in order to distinguish them from scraper bots (software that is trying to copy content).

Advertisement
Continue Reading Below

Protect Your WordPress Site with a Firewall

A firewall is a software program that blocks an intruder. In my opinion, the best WordPress firewall is a plugin called Wordfence.

What Wordfence does is to check if a website visitor’s behavior matches that of an abusive bot. If the bot breaks certain rules, like asking for too many web pages in a short amount of time, Wordfence will then automatically block the bot.

Wordfence is also programmed to allow legitimate bots like Google and Bing on the site.

There are advanced features that let a publisher see what bots are attacking a site and to view where the bot is coming from, like if it’s bad bot coming from Amazon Web Services or Bluehost for example and then give you the ability to block the bot by their IP address, the entire IP address range or even by the fake user agent that the bot is using.

Advertisement
Continue Reading Below

Some bots pretend to be a person on Windows XP. So you can actually block all visitors with a user agent that displays Windows XP and stop those bots automatically.

With one rule that a publisher creates with Wordfence, they can block thousands of hackers. Wordfence is a powerful tool on its own but some of the advanced features allows you to block even more hackers. And that’s with the free version of Wordfence.

The paid version can block entire countries. So if you don’t have legitimate site visitors from certain countries, you can block every visitor that’s coming from those countries.

Additionally, the paid version of Wordfence will protect you in advance from many compromised themes and plugins before those plugins are fixed.

Advertisement
Continue Reading Below

Once Wordfence researchers are aware of an exploit they will update their paid users to give them protection from those exploits, usually well before the exploit is patched by the compromised theme or plugin developer.

Website Security Hardening

Another free plugin that provides an additional layer of protection is called, Sucuri Security. Sucuri (owned by GoDaddy) helps harden the WordPress security to block bad bots from taking advantage of certain kinds of attacks. It also has a malware scanning feature that checks all files to see if they’ve been altered.

Sucuri will alert you every time someone logs into your site, helping publishers to identify if a hacker is logging in. Sucuri can also alert a publisher if a file was changed, something that hackers do.

Advertisement
Continue Reading Below

These are the features of the free version of Sucuri:

  • “Security Activity Auditing
  • File Integrity Monitoring
  • Remote Malware Scanning
  • Blacklist Monitoring
  • Effective Security Hardening
  • Post-Hack Security Actions
  • Security Notifications”

The paid version of Sucuri includes a website firewall.

Limit Logins to Your Site

WordFence is able to block bots that are repeatedly filling in user names and passwords in the WordPress login page.

But if you want to focus on limiting those logins, there is a plugin called, Limit Login Attempts Reloaded that allows publishers to automatically block all hackers who enter a set number of failed name and password combinations. For example, you can set it to block hackers after three attempts to guess the password.

Advertisement
Continue Reading Below

These are the features of the login blocker:

  • “Limit the number of retry attempts when logging in (per each IP). This is fully customizable.
  • Informs the user about the remaining retries or lockout time on the login page.
  • Optional logging and optional email notification.
  • It is possible to whitelist/blacklist IPs and Usernames.
  • Sucuri Website Firewall compatibility.
  • XMLRPC gateway protection.
  • Woocommerce login page protection.
  • Multi-site compatibility with extra MU settings.
  • GDPR compliant. With this feature turned on, all logged IPs get obfuscated (md5-hashed).
  • Custom IP origins support (Cloudflare, Sucuri, etc.)”

The Limit Login Reloaded plugin provides a fast way to shut down hack bots that are trying to guess a password.

Backup Your WordPress Site

It is important to automatically create a daily backup of your website. Any catastrophic event that takes the site down can be recovered from with a backup.

There are many backup solutions but the one that I have found to be immensely useful is called UpdraftPlus WordPress Backup Plugin. UpdraftPlus is trusted by over two million users, it’s a well regarded choice.

Advertisement
Continue Reading Below

It can be configured to email the backups every day or send them to a cloud storage location like Dropbox.

I once accidentally removed all the theme layout files from a site, completely removed the look of the site. But I was able to restore the site to exactly how it was before by using an UpdraftPlus backup. It was easy to do and I was so thankful.

Update all Themes and Plugins

It’s important to always update all themes and plugins. WordPress provides a way to update all plugins automatically, which is convenient for publishers or businesses who don’t log in and do updates often.

By enabling the autoupdate feature a publisher can be assured of having the most up to date software. Having an out of date plugin is one of the leading causes of being hacked.

Screenshot of WordPress Autoupdate feature

Screenshot of WordPress Autoupdate feature

There are reasons not to enable the autoupdate feature, but the negatives tend to happen rarely. For example, an updated plugin might be incompatible with other plugins.

Advertisement
Continue Reading Below

But for sites that don’t change frequently, the autoupdate feature is probably a good thing to enable.

Beware of Abandoned Plugins

A final warning about abandoned plugins. Some plugins can continue to work years after they’ve been abandoned by their developer. What can happen is that these old plugins may contain a vulnerability. But because they are abandoned, it will never get fixed.

Another issue is that hackers sometimes buy the old plugins and update them with malware and viruses.

Check all your WordPress plugins to make sure that they have not been abandoned and appear to be updated on a fairly frequent basis.

Protect Your WordPress Site from Hackers

For many sites, simply taking these small steps to secure a website is enough to keep the sites from getting hacked. The free versions of these plugins provide an extraordinary amount of protection and the premium versions give even more protection.

Advertisement
Continue Reading Below

There are many security type plugins and some of those have actually contained vulnerabilities themselves. Wordfence and Sucuri are in my opinion top choices for WordPress security.

Citations

WordFence Security

https://wordpress.org/plugins/wordfence/

Sucuri Security

https://wordpress.org/plugins/sucuri-scanner/

Limit Login Attempts Reloaded

https://wordpress.org/plugins/limit-login-attempts-reloaded/

UpdraftPlus

https://wordpress.org/plugins/updraftplus/

No Comments

Sorry, the comment form is closed at this time.