Add to Chrome

Log In

Sign Up

Try Gigabrain PRO

Supercharge your access to the collective wisdom of reddit, youtube, and more.
Learn More
Refine result by
Most Relevant
Most Recent
Most Upvotes
Filter by subreddit
r/Wordpress
r/webhosting
r/CloudwaysbyDO

How to Secure a WordPress Website

GigaBrain scanned 201 comments to find you 88 relevant comments from 10 relevant discussions.
Sort
Filter

Sources

How to harden the security of wordpress site?
r/Wordpress • 1
How to secure a wordpress server?
r/Wordpress • 2
Best Practices to Secure WordPress website
r/Wordpress • 3
View All
7 more

TLDR

Summary

New

Chat with GigaBrain

What Redditors are Saying

How to Secure a WordPress Website

Securing a WordPress website is essential to protect against vulnerabilities and potential attacks. Here are some comprehensive strategies gathered from various discussions.

Basic Security Measures

  1. Regular Updates: Keep your WordPress core, themes, and plugins up to date to prevent exploits [1].
  2. Strong Passwords & 2FA: Use strong, unique passwords and enable two-factor authentication (2FA) for all accounts [3:1], [5:1].
  3. SSL/TLS Encryption: Ensure your site uses SSL/TLS to secure data transmitted between the server and users [1:6], [5:1].

Advanced Security Techniques

  1. Custom Login URL: Change the default login URL from /wp-admin to something unique to reduce brute force attempts [4], [5:1].
  2. Limit Login Attempts: Use plugins to limit login attempts and block suspicious IP addresses [2:1], [4:4].
  3. Firewall & CDN: Implement a firewall or use a CDN like Cloudflare to filter out malicious traffic [3:1], [4:2].

Security Plugins

  1. Wordfence: Popular but resource-heavy; provides comprehensive security checks [3:1], [5:10].
  2. WP Security Ninja: Lightweight alternative that runs multiple security tests [3:1].
  3. All-in-One Security (AIOS): Offers features like login page changes and honeypots for bots [5:7].

Server and Hosting Considerations

  1. VPS Hosting: Opt for VPS hosting over shared hosting for better control and security [1:1].
  2. Secure Configuration: Regularly update the operating system and use server-side firewalls like Modsecurity with OWASP ruleset [4:5].

Backup Strategies

  1. Regular Backups: Perform daily offsite backups using plugins like Duplicator or All-in-One WP Migration to ensure data recovery in case of an attack [3:1], [4:4].

Additional Recommendations

  • Avoid Nulled Themes/Plugins: Do not use pirated or "nulled" versions of themes and plugins as they often contain malware [2:1].
  • Monitor Activity: Use plugins like WP Activity Log to track changes and receive alerts on suspicious activities [3:4].

By implementing these strategies, you can significantly enhance the security of your WordPress website and protect it from common vulnerabilities and attacks.

See less

Helpful

Not helpful

You have reached the maximum number of searches allowed today.

Gigabrain for Chrome works on Bing too.

It's not just for google search! The Gigabrain extension can also bring you the most relevant and informative answers when you search on Bing.

Add to Chrome

Source Threads

POST SUMMARY • [1]

Summarize

How to harden the security of wordpress site?

Posted by abuduzana · in r/Wordpress · 5 years ago
14 upvotes on reddit
10 replies
Helpful
Not helpful
View Source
ORIGINAL POST

Here are some tips to keep wordpress secure by wpengine:

  1. Keep WordPress core, themes, and plugins up to date
  2. Only install trusted WordPress plugins and themes
  3. Remove Unused Plugins and Themes
  4. Install a WordPress security plugin
  5. Regularly backup your WordPress site
  6. Enforce Strong Passwords and Usernames
  7. Use two-factor authentication (2FA)
  8. Change or omit the “admin” username
  9. Limit Login Attempts
  10. Monitor Incoming Attacks
  11. Use SSL for data security
  12. Hide Your WordPress Version
  13. Relocate or rename login page
  14. Secure the wp-config file
  15. Use A Secure Hosting Environment

Do you know any other tricks to make wordpress secure? Feel free to share in comments.

10 replies
M
Mc_UsernameTaken · 5 years ago

Don't confuse actual security with security through obscurity.

Point 8 and 12 doesn't provide any real security measures, or in any other way actively guards against incoming attacks.

Also I recommend using geoblocking for wp-admin, to only allow log in from trusted countries.

3 upvotes on reddit
N
nbass668 · 5 years ago

And point 13 also useless

2 upvotes on reddit
Max_Bizcom · 5 years ago

WordFence!

4 upvotes on reddit
M
Mc_UsernameTaken · 5 years ago

If you know what you're doing, this isn't needed, sufficient security measures can be achieved otherwise.

Which in my opinion is preffered, because WordFence is a really heavy plugin, and sometimes slows your wordpress site to a crawl.

2 upvotes on reddit
I
imwjd · 5 years ago

Might want to add that this is in no particular order. Changing the address of login would be higher up of course.

1 upvotes on reddit
N
nbass668 · 5 years ago

This is so useless. Don't do it. Focus on real security.

2 upvotes on reddit
I
imwjd · 5 years ago

Can you explain your reasoning?

1 upvotes on reddit
O
off37 · 5 years ago

>Use SSL for data security

I assume you mean "TLS", because "SSL" is something from the 90's and is extremely unsafe.

-7 upvotes on reddit
N
nolo_me · 5 years ago

https://i.kym-cdn.com/photos/images/newsfeed/001/191/035/135.png

6 upvotes on reddit
E
Edward_Morbius · 5 years ago

The above is fine for a personal blog but if your business actually depends on your wordpress site and being hacked would cost you real money, you need more.

  • Run on a VPS from a trusted provider, not shared hosting.
  • Keep the OS updated.
  • Use a trusted theme with ongoing support and frequent updates. Typically these require a licence or maintenance fee every year.
  • Use Apache (or nginx/etc) Auth with 2FA on the wp-admin directory. Any plugins or features that require that non-authenticated users access the wp-admin directory will break. That's OK. They were a risk.
  • Revoke write permissions to the entire webroot for the webserver user Note that this breaks auto update, so you'll need to do it manually, as well as user uploads. However if your site is important, it should be accepting files from users anyway.
  • Don't install plugins that accept user input.
  • Keep offsite DB backups every <X> minutes and offsite filesystem backups every <Y> minutes. X & Y depend on how fast your data changes and your tolerance for data loss.
2 upvotes on reddit
See 10 replies
r/Wordpress • [2]

Summarize

How to secure a wordpress server?

Posted by [deleted] · in r/Wordpress · 5 years ago

What are the ways to secure your wordpress server from hackers, aside from SSH?

What measures do you take?

Anything appreciated, and thanks in advance!

1 upvotes on reddit
2 replies
Helpful
Not helpful
View Source
2 replies
chrisdaswiss · 5 years ago

https://wordpress.org/support/article/hardening-wordpress/

A pretty good start to securing your server.

2 upvotes on reddit
R
rj_A2Hosting · 5 years ago

There are several ways:

  1. Set secure passwords for your WordPress site, hosting account and FTP
  2. Dont use “nulled” themes/plugins
  3. Dont use themes or plugins from suspicious sources
  4. Use WordFence
  5. Use a plugin to limit login attempts

Optionally you can change the admin login url address

0 upvotes on reddit
See 2 replies
r/Wordpress • [3]

Summarize

Best Practices to Secure WordPress website

Posted by BalenduDivakar · in r/Wordpress · 8 months ago

Hei guys,

Whats the best practices to secure a website, i want to make sure my company website is very secure and not be hackable,

I have heard that WordPress could be hacked if the plugins are not up to date etc even if we install a security plugin,

Please suggest best practices to secure the website,

Thanks

3 upvotes on reddit
12 replies
Helpful
Not helpful
View Source
12 replies
H
hopefulusername · 8 months ago

All boils down to these:

  • Always have daily offsite backup. Hacked? You can restore right away
  • Keep plugins up to date
  • Use 2FA for logins
  • Put your website behind Cloudflare
  • Use Wordfence for vulnerabilities checks and general security
  • Use Turnstile and/or OOPSpam for spam protection
5 upvotes on reddit
BestScaler · 8 months ago

This guy WordPresses.

Personally I'd skip WordFence because of the bloat. But if I need a security plugin I'd use AIOS.

1 upvotes on reddit
2ndkauboy · 8 months ago

I skip any security plugin - other than "Two Factor". When a plugin tries to stop attacks, that's already too late. Cloudflare or similar in front of the site can help.

2 upvotes on reddit
blackhathacker1602 · 8 months ago

or opt for solid pro sadly they don't have free version to test out. But they do have some nice login features besides 2FA and they also have patchstack included to patch any plugin issues.

1 upvotes on reddit
B
Bluesky4meandu · 8 months ago

Wordfence and bloat ?

1 upvotes on reddit
Due-Individual-4859 · 8 months ago

wish there would be just a simple plugin that does the low resource scanning of the site.... don't need anything else from wordfence!

1 upvotes on reddit
H
hopefulusername · 8 months ago

They are many. Search for ‘WordPress integrity check’. Wordfence is only worth if you are going to use most of the features.

1 upvotes on reddit
ContextFirm981 · 8 months ago

Security is a major aspect of the website, and I faced some hacking issues in my earlier days. Then, I found this step-by-step guide and followed it. It helped me secure my website. You can also refer to this.

2 upvotes on reddit
I
ivicad · 8 months ago

I use Virusdie and MalCare to keep my websites secure. I also use the WP Activity Log plugin to track activities on my WordPress sites as it logs actions like creating user accounts, changing permissions, and login attempts, plus it sends real-time alerts for any changes on our sites.

I do regular updates of all the apps on the sites: plugins, themes, WP core, PHP version if needed.... with 2FA on some sites.

I also make sure to back everything up regularly, so I set up regular offsite backups to my pCloud with the All-in-One WP Migration plugin and rely on daily backups from SiteGround hosting. For some sites, I also use SaaS BlogVault.

1 upvotes on reddit
Leather-Specific605 · 8 months ago
  1. Regularly backup your site, Daily is better
  2. Do not use a crack theme or plugin, purchase from the author and update regularly.
  3. Get a good hosting, managed wp hosting is better if you don't know much about maintaining a hosting.
  4. Use a security plugin and turn on automatic scanning.

These are the basic way to prevent malware attack and cracking of your website.

2 upvotes on reddit
Brave-Presentation-3 · 2 months ago

Great question. Securing a WordPress site is critical, especially with so many bots and brute force attempts out there these days.

A few best practices I always recommend:

  • Use strong, unique passwords + 2FA
  • Keep everything updated: core, plugins, themes
  • Disable XML-RPC if you don’t use it
  • Regular offsite backups (daily, if possible)
  • Set up a solid firewall or CDN like Cloudflare

As for plugins, while Wordfence is popular, some find it heavy on resources. I personally use WP Security Ninja. It’s lightweight, runs 50+ security tests, and offers login protection, file change monitoring, and malware scans without slowing down the site. Super useful for both beginners and pros.

Security is a layered approach. Plugins help, but good hosting, smart config, and regular audits are just as important.

What setups are others here using? Always good to compare notes.

1 upvotes on reddit
Wordpress-ModTeam · 2 months ago

The /r/WordPress subreddit is not a place to advertise or try to sell products or services.

1 upvotes on reddit
See 12 replies
r/Wordpress • [4]

Summarize

How do you secure your Wordpress site?

Posted by utsav_0 · in r/Wordpress · 3 months ago

I woke up today with about 100 SQL injection attempts on my website.

Nothing compromised. But still, it made me think of all the measures to make the site more robust and secure.

Yeah, I know, I should've set up some rate limiting. But other than that, what measures do you take for that without affecting the normal user experience?

Here's what I already do:

I use Cloudflare with default options enabled and custom WAF rules.

WP-admin page is on a custom URL.

Sanitize all the data received from the form submissions.

What else?

EDIT:

From the suggestions, I've set up:

- Wordfence

- Cloudflare

- 2FA

- Strong Password

- Captcha

43 upvotes on reddit
12 replies
Helpful
Not helpful
View Source
12 replies
bluesix_v2 · 3 months ago

Cloudflare + Wordfence.

Pretty sure CF blocks SQLi attacks by default?

edit: 2FA and changing the admin URL doesn't protect you from vulnerabilities, which is how most WP sites are hacked.

7 upvotes on reddit
Designer-Street3319 · 3 months ago

I would be interested on why you think 2FA won't protect?

1 upvotes on reddit
bluesix_v2 · 3 months ago

It doesn’t stop you from getting hacked - almost all hacks in WP are a result of a plugin vulnerability, which bypass the login system.

There should not be any reason for someone to have your password. If that is the case, you have much bigger problems to deal with.

7 upvotes on reddit
T
travisjudegrant · 3 months ago

Wordfence, 2FA, strong passwords.

16 upvotes on reddit
utsav_0 · OP · 3 months ago

Done! All three

2 upvotes on reddit
Tough-Cicada-7998 · 3 months ago

Ninjafirewall, WP Armour (to protect all your forms combined with Akismet if possible), Server side Modsecurity Firewall with OWASP ruleset (which will solve 90% of your issues) combined with CSF firewall (which works server side) blocking the IPs).

But here is the thing. All this depends on who your host is. I have had dumb hosts who had most of these things and still got me hacked. Better if you can get a vps or atleast invest on some good backup options like duplicator pro and configure them to atleast 2 endpoints.

Backup is not a security option but is a fallback when you lost your corefiles.

1 upvotes on reddit
software_guy01 · 3 months ago

You’ve already taken some great steps to protect your site, and that’s really good to see. One more thing you might find helpful is using a plugin like WPCode. It lets you add useful security changes, like turning off XML-RPC or limiting login attempts without needing to touch any code. It’s easy to use and perfect for beginners who want a little more control.

Also, make sure you’re doing regular backups. A plugin like Duplicator can create a full copy of your site that you can restore anytime if something goes wrong. I personally use it as a backup plan, just to be safe.

7 upvotes on reddit
GrantaPython · 3 months ago

Just to add to this, Admin & Site Enhancements does a similar set of operations. Possible the plugin is smaller in scope. Worth considering as an alternative imo or worth comparing if it is more security feature rich (I've not checked). 

It also does a few other things, including establishing a custom URL for admin. If OP or someone else has used this for that purpose, use ASE for the security stuff too.

1 upvotes on reddit
D
djaysan · 3 months ago

As Bluesix said above, changing admin url does nothing. I have my own self managed vps and noticed a lot of login attempts using a lot of server resources. Since i’m on cloudflare (free) i enable cf access. Put it in front of my login pages and it requires a specific email address, then a 6 digit code is sent that email and only then, the login page is accessible. Since then… no more crazy cpu usage, i can run 40 low to moderate traffic elementor sites on a single vps using openlightspeed.

11 upvotes on reddit
L
landed_at · 3 months ago

I use CF but unsure if your setup which seems an extra step?

1 upvotes on reddit
D
djaysan · 3 months ago

Well it just put a wall that requires a 6-digit code in front of your login page. So your login page won’t get hit by bots since cloudflare act as a bouncer if that make sense. Its like a 2fa before you hit the login page. I don’t even need any recaptcha or 2fa for my login page anymore since only my email and the one of the site owner can access it. Its super easy to setup. Once in place, the user gets redirected to the cloudlfare access page, enter their email, get a code by mail (or can click on “access” button instead) and voila, they can login mormally.

4 upvotes on reddit
WP_Warrior · 3 months ago

Invisible captcha on forms.

11 upvotes on reddit
See 12 replies
r/Wordpress • [5]

Summarize

How do you keep your site safe?

Posted by Shawtts · in r/Wordpress · 5 years ago

I am about to launch my first big site and business on WordPress but I want to make sure that my login info and payment info is fully protected. What do you guys use to make sure everything is secure?

41 upvotes on reddit
12 replies
Helpful
Not helpful
View Source
12 replies
F
freeazy · 5 years ago

Wordfence + Cloudflare Access + Cloudflare Firewall. All free.

8 upvotes on reddit
C
caseyd1020 · 5 years ago

In addition to the above I also add WP Hide and Security plugin. Let's you rename and hide a bunch of stuff. I also do two factor with Google authenticator, or duo for a couple of larger clients.

1 upvotes on reddit
[deleted] · 5 years ago

Wordfence, 2 factor authentication, change htaccess file to only allow your ip on wp-admin pages

18 upvotes on reddit
S
spdorsey · 5 years ago

>change htaccess file to only allow your ip on wp-admin pages

Got a good link or tutorial for beginners on this? (thanks)

1 upvotes on reddit
P
pincopallinux · 5 years ago

blocking other IPs to wp-admin will break access to wp-admin/admin-ajax.php which is used to call all the registered wp_ajax_ and wp_ajax_nopriv_ actions. It may work on many websites, but not all of them.

19 upvotes on reddit
[deleted] · 5 years ago

I use All-in-One security. With heavily modified settings. Changes loginpage. And creates a honeypot for loginbots.

And never use the account "admin" be sure to change that, or delete it.

11 upvotes on reddit
C
Chaffy_ · 5 years ago

I’ll second this and add change the display name for your admin account to something that’s not the username. Keep your plugins and core files up to date, take frequent backups, and use a child theme.

9 upvotes on reddit
D
deadlybydsgn · 5 years ago

Yep. AIO Security + Wordfence with 2FA helps me sleep soundly at night.

2 upvotes on reddit
sanba06c · 2 years ago

what's the differences between AIO Security and Wordfence?

1 upvotes on reddit
BorkStick · 5 years ago

I like to do a few things to secure a site.

  1. Make sure you are using SSL, so the site shows up as https:// instead of http://
  2. Make sure you are not using common usernames like admin, your domain, or such. and I also use a separate account with an editor role to make posts. Bots will scan your posts and use that poster to login.
  3. I also use a randomly generated password for each account. You can use a password manager like LastPass to generate and save these.
  4. I also use a custom login URL so /wp-admin is changed to something else.
  5. For security plugins I like using Wordfence or IThemes Security, and I like to limit the login attempts, so an IP is banned if someone tries logging in too many times. You can also use these plugins to customize the login URL.
  6. I also use a logging plugin like WP-Stream or Audit Log, to keep track of when a user does something on the site such as logins, updates, changes. This will help you figure out if the site has been accessed without you knowing, and give you a timeline.
  7. If you want to really secure the logins you can setup a IP whitelist, that only allows certain computers from logging in. Or you can setup Two-Factor Authentication, where you have to use a code from your phone, after you use your password
  8. The most important thing to do security wise is to KEEP ALL YOUR PLUGINS AND THEMES UP TO DATE The majority of the time a site gets hacked is because a plugin / theme is out of date, and there are security holes that give bots / hackers a way in.
18 upvotes on reddit
N
ninjitsu101 · 5 years ago

(8) If some of my plugins are deactivated and not up to date can a site be hacked via those plugins?

9 upvotes on reddit
B
bejay45 · 5 years ago

WordFence

If you're the only admin, turn on notifications for admin logins, so you get an e-mail every time an admin is logging in.

6 upvotes on reddit
See 12 replies
r/webhosting • [6]

Summarize

Shared Hosting Security

Posted by DukeDurden · in r/webhosting · 7 months ago

I'm sure this has been asked many times, but I can't find a definitive guide that explains it. I buy a shared hosting plan and install WordPress, what exactly do I do to secure my website? I'm picturing something like this: You go to cPanel/DirectAdmin and you do 1, 2, 3. You go to your WordPress backend and you do 1, 2, 3.

3 upvotes on reddit
7 replies
Helpful
Not helpful
View Source
7 replies
I
ivicad · 7 months ago

First, make sure your site is backed up (I do it mainly via plugin the All-in-One WP Migration via pCloud or my hosting's backups). This way, you can restore your site if anything ever goes wrong.

Next, take care of security: install WAF (I use Virusdie and MalCare), plus I add an activity log plugin, like WP Activity Log, as you can track any changes or potential issues on your site.

To further secure your shared hosting WP site, ensure you’re using strong, unique passwords for your cPanel and WP accounts: enable two-factor authentication (2FA) for an extra layer of protection. In your cPanel, disable directory browsing and protect sensitive directories with passwords.

In the WP backend, keep your plugins, themes, and WP core updated to avoid vulnerabilities (in this order).

1 upvotes on reddit
cprgolds · 7 months ago

This really depends on the host's setup.

I would make sure that it is supporting Immunify 360 and that it is enabled and also install the free Wordfence Plugin in WP.

4 upvotes on reddit
IllKindheartedness10 · 6 months ago

As a host with Immunify360, we frown upon Wordfence because we've see it cause major database corruption issues... one week we migrated 5 new clients who all had the same problem from a number of different hosts.

1 upvotes on reddit
cprgolds · 6 months ago

That is really interesting. Do you have any further details about this? Was Wordfence contacted?

I am not disputing what you said. I want to reevaluate my use of WF. I have been using WF for years, have migrated my site in the past and never heard this before. Could it be incompatibility with another plug-in?

1 upvotes on reddit
Jeffrey_Richards · 7 months ago

A shared host should already have server level security measures like imunify360. A good security plugin for WordPress is Wordfence, but most times I find it to be just resource heavy and not necessary.

2 upvotes on reddit
Extension_Anybody150 · 7 months ago

When it comes to your website security, where you host it really matters. I've got my sites hosted with NixiHost, they include free Imunify360 protection that guards against hackers and malware, plus free SSL certificates. Imunify360 with Nixihost is automatically installed in cPanel which allows you to scan and detect malwars easily, SSL certificate is automatically installed on your domain as well, and you can add Wordfence plugin to WordPress easily for extra security and backups. Their firewall catches the bad guys before they even reach your site, which lets me sleep better at night. I learned this the hard way before switching to NixiHost three years ago. The peace of mind from knowing my sites are secure, backed up, and loading quickly is totally worth it. Plus, when issues do come up, having responsive support makes all the difference between a quick fix and hours of stress.

1 upvotes on reddit
Ok_Dark_3735 · 7 months ago

To secure your WordPress website on shared hosting, follow these steps:

  1. Regularly update WordPress, themes, and plugins.
  2. Set strong passwords for admin, database, and hosting accounts.
  3. Use plugins like WPS Hide Login to modify the default login URL
  4. Use plugins like Google Authenticator to enable 2FA
  5. Prevent brute-force attacks with a security plugin like Wordfence to limit login attempts.
  6. Use an SSL certificate to activate HTTPS for encrypted data transfer.
  7. To disable file editing add define ('DISALLOW_FILE_EDIT', true); to wp-config.php.
  8. Use Wordfence or Sucuri for monitoring and firewall protection.
  9. Set up automatic backups with UpdraftPlus or Jetpack or join the daily backup option with your hosting provider.
9 upvotes on reddit
See 7 replies
r/Wordpress • [7]

Summarize

How do I actually keep my WordPress site secure?

Posted by wheelstb33 · in r/Wordpress · 6 months ago

I've had a handful of WordPress sites over the years. None of them have been really critical until now. I am launching an e-commerce site and very serious about this project.

I've always had security problems with my WordPress sites. A few months ago I got a virus on my e-commerce site and basically had to start over.

Now I am using the free version of Word Fence. I also am using the free version of Updraft for backups.

In general, I'm also using Nord Password Manager.

I've tried to enable two factor authentication with Word Fence. But it doesn't seem to be working. I can't seem to get the authenticator to play nice with Word Fence.

About once every couple of weeks, I get an email from Word Fence letting me know that there was a login. And it turns out to be unauthorized.

What can I do to lockdown my site? If it means spending money on security options, I'm okay with that. I just want to be taking the right approach.

11 upvotes on reddit
9 replies
Helpful
Not helpful
View Source
9 replies
Brave-Sherbert-2180 · 6 months ago

I basically have the same with free Wordfence and free updraft. I would have occasional security issues, maybe once or twice a year.

However, any security issues ended when I activated 2FA. Have not had an issue since.

4 upvotes on reddit
No-Signal-6661 · 6 months ago

Use Wordfence, enable 2FA, and keep everything up to date

7 upvotes on reddit
H
hopefulusername · 6 months ago

Keep it simple.

  • Have a proper hosting
  • Setup daily backups
  • Put your website behind Cloudflare
  • Keep plugins and themes up to date. Remove unused ones
  • Use spam protection (OOPSpam or/and Turnstile) if you need.
  • Use 2FA for admin logins
6 upvotes on reddit
M
mds1992 · 6 months ago

For me, there's not a better combo than server-level security and utilising Cloudflare's WAF to set up your custom rules, rate-limiting rules, etc... Pretty sure the free version is sufficient in most situations.

But even if you need the pro version, it's like $25 per month & is likely going to do a lot more for your site than a plugin ever would.

Also, not chucking random plugins at problems will greatly decrease the likelihood of some sort of hack/intruder. I can't remember the last time I ever had to deal with a hacked site.

22 upvotes on reddit
r33c31991 · 6 months ago

This is a great solution, also look into disabling user enumeration, change the admin URL (make sure it blocks wp-login.php) as that will greatly reduce the amount of admin login attempts if not stop them completely.

3 upvotes on reddit
Cyphr-Phnk · 6 months ago

Use this! It’s a temporary wordpress plugin that you can use to set your WAF rules for you. Amazing. https://github.com/presswizards/cloudflare-waf-rules-wizard

3 upvotes on reddit
M
mds1992 · 6 months ago

Looks useful, but for anything related to client sites I make sure they have their own account set up (to ensure they have full access to everything they need to run their site should they choose to leave me or if I die/disappear). Doesn’t take me long to add in the specific rules / settings most clients, whenever I do take on any new ones.

2 upvotes on reddit
uejosh · 6 months ago

👌 This right here is your best bet. 💯%

5 upvotes on reddit
TheDigitalPoint · 6 months ago

Utilize Cloudflare's Zero-Trust Network Access system (it's free for up to 50 users... meaning 50 admins for your site). That will make it so network requests to wp-admin will be authenticated before the request even goes to your server (basically if there's an exploit in WordPress core or plugins, unauthorized users still won't be able to get to the admin area of your site).

https://i.ibb.co/rcHDK4M/image.png

10 upvotes on reddit
See 9 replies
r/CloudwaysbyDO • [8]

Summarize

Best Practices for Securing WordPress on Cloudways

Posted by IncreaseRealistic292 · in r/CloudwaysbyDO · 5 months ago

WordPress powers a huge part of the web, which also makes it a prime target for attacks.
If your site isn’t properly secured, it’s only a matter of time before vulnerabilities are exposed.

Here are two essential steps every site owner should have in place:

1. Enable Two-Factor Authentication (2FA)
A simple but powerful way to stop the majority of brute-force login attempts.

2. Activate Cloudways Bot Protection
Prevents malicious bots from overwhelming your server or finding weak points.

Still, there are a few commonly overlooked issues that can leave even secure sites vulnerable and we shared the key ones and how to fix them in the comments below!

2 upvotes on reddit
4 replies
Helpful
Not helpful
View Source
4 replies
IncreaseRealistic292 · OP · 5 months ago

Additional important security measures:

  • Disable XML-RPC – If you don't need it, turn it off. It’s a frequent target for attacks.
  • Restrict Access to wp-admin – Limit access by IP address to keep unauthorized users out.
  • Change the Default Login URL – Makes brute-force attempts significantly harder.
  • Implement Security Headers – A simple way to block many types of web exploits.
  • Use a Web Application Firewall (WAF) – Provides an extra layer of robust protection.

Securing your WordPress site doesn’t have to be overwhelming and even a few smart changes can make a big difference.

Already secured your site? We’d love to hear what’s worked best for you.

Share your tips below to help strengthen the community.

2 upvotes on reddit
R
RickSure · 5 months ago

>Use a Web Application Firewall (WAF)

Can anyone confirm whether the server-level firewall provided by Cloudways is robust enough to eliminate the need for a security plugin like WordFence?

1 upvotes on reddit
IncreaseRealistic292 · OP · 5 months ago

Cloudways provides a server-level firewall through its partnership with Cloudflare (Advanced WAF for premium users) and also uses OS level firewalls (like iptables) for basic protection. This setup does block many common threats, especially at the network level.

However, tools like Wordfence go deeper at the application level (inside WordPress), offering features like:

Login security (2FA, brute-force protection)

File integrity monitoring

Malware scanning specific to WordPress core, plugins, and themes

Detailed traffic insights

So while the Cloudways firewall is strong, it doesn’t fully replace what Wordfence does at the application layer. Think of Cloudways' firewall as your outer wall, and Wordfence as your internal security system. Using both provides layered protection, especially if you’re managing multiple plugins or allowing user interactions.

Hope this answered your question

1 upvotes on reddit
tracedef · 5 months ago

Yes, it is more than adequate between immunify and fail2ban. WordFence is more trouble than it is worth. I also seem to see people complaining that it has failed to prevent breaches on a fairly regular basis.

2 upvotes on reddit
See 4 replies
r/Wordpress • [9]

Summarize

Hardening Wordpress

Posted by TootShute · in r/Wordpress · 8 months ago

Hey r/Wordpress !

I was wondering if everyone could share what the first steps you take to harden your wordpress installation is? For example, here is what I do.

  1. Change /wp-admin/ URL location to /admin/ or something else
  2. Hotlink Protection
  3. Disable File Editing
  4. Restrict Access to wp-admin to only my IP address
  5. Disable XML-RPC
  6. Add ReCaptcha to wp-login.php
  7. Add brute force protection to wp-login.php
  8. Cloudflare proxy
  9. Disable Directory Indexing and Browsing
2 upvotes on reddit
8 replies
Helpful
Not helpful
View Source
8 replies
[deleted] · 8 months ago

I use WP Security & WordFence together, as it has all of those options you listed, on a software level. There are other options on the server level like ModSecurity, and even closing all ports and allow only direct access to server from CloudFlare IPs. ModSecurity is kind of overkill, and would be best if you had high security type of website, like trading, e-commerce, or other stuff that has to do with finance or money.

1 upvotes on reddit
scosio · 8 months ago

Add Procaptcha instead of reCAPTCHA and you'll block more bots.

4 upvotes on reddit
Wordpress-ModTeam · 7 months ago

The /r/WordPress subreddit is not a place to advertise or try to sell products or services.

-12 upvotes on reddit
Outrageous-Fruit1076 · 8 months ago

You're not mentioning a single infrastructure hardening option. You're only as good as the weakest link.

1 upvotes on reddit
TootShute · OP · 8 months ago

Our server itself and its infrastructure is hardened separately. This thread is only regarding a single wordpress installation.

1 upvotes on reddit
tadddahhh · 8 months ago

Sometimes it is not an attacker that brings your site down... 😉

Especially if mutiple admins are involved: install an event tracker. It tells you who did what at which time.

Been using WP Activity Log for a long time for that, but have switched now to WP Admin Audit because I prefer the more modern UI controls.

1 upvotes on reddit
I
IWantAHoverbike · 8 months ago

Simple History is another good one, better than WP Activity Log IMO.

1 upvotes on reddit
J
jamieburchell · 8 months ago

https://developer.wordpress.org/advanced-administration/security/hardening/

2 upvotes on reddit
See 8 replies
r/Wordpress • [10]

Summarize

What are the best security practices for WP?

Posted by regustavo · in r/Wordpress · 4 years ago

Hey guys, I’m sure everyone has a preferred way to secure their sites. Just looking to expand my knowledge on this area. Which plugins or third party services do you use to build a secure site?

Currently use: WordFence

But I feel there are much more I can do to build a safe site in all senses not just malware or firewall protection.

31 upvotes on reddit
12 replies
Helpful
Not helpful
View Source
12 replies
J
jjarcanista · 4 years ago

A WAF, password protect wp-login.php, backups, and constant updating of everything. I personally use wordpressupdater (or wp-cli directly), but I wrote the tool so I not sure if I should link to it. I set it up on the daily cron.

There are plugins to manage updates, and even the wordpress core does it itself, but wp-cli and my tool (among countless other scripts!) provide good notification, integration with Apache, etc, etc.

Of course, harden your php setup!

4 upvotes on reddit
T
thirtysth · 4 years ago

Wp limit login attempts plugin prevents brute force login attempts.

1 upvotes on reddit
J
jjarcanista · 4 years ago

wp-fail2ban is a must!

1 upvotes on reddit
martinskou · 4 years ago

Only use top tier plugins. And update daily. Scan logs for hacking attempts and blacklist abusers IP. Consider if your security requirement are WP compatible.

17 upvotes on reddit
F
fwaggle · 4 years ago

> Only use top tier plugins.

You missed the very first step: decide if you really need a plugin for that. At each and every step of the way, decide if a) you actually require the behaviour you're looking at and b) whether the cost of admission (not just costs of the plugin, but the administrative load of keeping it updated, the chance of the plugin author just ghosting, the chance of the plugin author selling it to someone else who isn't so interested in security, etc) for the plugin is worth the behaviour you think you require.

Because IMHO by far the biggest security hole in the average WordPress site (that is, taking them all together in aggregate, not picking out any given WP site and looking at it) is some clueless admin thinking "oh cool, I can add this then I can do <thing>" without ever thinking "do I really need to do <thing>"?

Examples: leaving duplicator, database reset, etc installed long-term. Any of the creepy visitor tracking stuff. GeoIP redirects. Almost all of these are stupid ideas in the first place, but there's also some really terrible plugins out there that implement them that end up riddled with security problems.

So the very first step is "do I actually need to do this?". Personally, I scale this all the way back to WordPress itself - your first step is deciding if WordPress is actually the right tool for the job. If you're going to be paid to admin and update the content of the site, and it changes infrequently, and needs zero user interaction, then a static site generator is probably a much better choice and effectively eliminates the attack surface.

But if WP is a requirement, really think hard about whether some gizmo provided by some plugin you bought a lifetime license for $30USD for is actually a requirement too.

6 upvotes on reddit
I
intcultcom · 4 years ago

Update daily?

Millions of sites broke just last month because of WP 5.5:

https://www.searchenginejournal.com/wordpress-5-5-1-maintenance-release/379486/

Many updates will break stuff - even with quality plugins. Rarely is one so urgent that it can't wait a week or two.

Be sure to backup before you update and if possible even consider staging your update first. Hold off on version X.0 and wait for X.1 or even X.2. That's usually when they've worked out the bugs.

Check for vulnerabilities of your plugins regularly.

https://db.threatpress.com/

If the update is fixing a vulnerability, then update immediately.

3 upvotes on reddit
R
RanojitKumar · 4 years ago

I used WordFence/sucuri for my websites. I used top level plugins which are popular and keep them up to date.

3 upvotes on reddit
X
Xilonz · 4 years ago

This really depends on your host and stack you are using. If you use Cloudflare you already reduce a huge amount of bot/hacking traffic. Cloudflare recently announced a service that's specific for WordPress wich I do highly recommend.

The problem with plugins for hardening WordPress is the same as installing anti-virus software on your pc. It makes it slow. On your pc this might not be a problem, but most hosting solutions do not have enough power.

We, at work, stick with a good WordPress specic hosting company, CloudFlare and an internal update manager. Managing hundrets of WordPress sites and our sites haven't been hacked unless there was a serious vunerability on the sites plugins. Wich you can never prevent. Always make sure you have backups.

7 upvotes on reddit
R
regustavo · OP · 4 years ago

Do you mind sharing what hosting company is the preferred choice?

1 upvotes on reddit
M
MilesWeb · 4 years ago

Security practices for WP without the use of plugin:

  • Regularly update your WordPress.
  • Restrict user privileges.
  • Avoid using the default "Admin" username.
  • Try using strong passwords.
  • Delete the plugins and themes that you don't need.
3 upvotes on reddit
B
brianozm · 4 years ago

Great list; one thing I’d add is using 2FA. Everything is moving in that direction, as well as having good, off-server, backups.

1 upvotes on reddit
J
jftitan · 4 years ago

Sysadmins will have a million methods.

Depending on your hosting platform.

And... how much hair do you have left... cause reading those logs can be daunting.

So, how do I sort through my logs? And with 50 websites hosted, what kind of life does one have?
Whelp, depending on your skillset or industry, there are a few log reader programs one can purchase.

The "depending on your hosting platform" godaddy versus all their various options for hosting. So for this example. Godaddy with managed wordpress hosting (deluxe)

You can use sftp to access your wordpress installation, once looking at your file system you'll locate the directory that has daily log files going as far back as your hosting is configured to do.

Download these text files and begin to bore yourself with "wtf does all this mean".

You can use notepad, but I truly suggest to the untrained... use notepad++ at least this program can help color code the log entries.

You'll do this from time to time, read your logs, but in most cases you are looking for those glaring errors that makes the repetitive entries stick out.

So when a failure, or serious error happens behind the scenes of your wordpress's daily operations, these logs can help explain what's causing those problems.

Now, sysadmins have syslog tools, and graphing tools that help automate reading 100s of logs at once.

Be like a network security geek. You want to be a Log Master!.

One of those tools is capturing packets, and analysis methods used to single out a single user from the massive amounts of data. Those tools rock on.

But for you. Scanning logs, just means locating where they are.

Another example of a different web host is powweb.

They called their logs. Php access logs. Essentially the same as others.

If you obtain a reasonable "software firewall" for wordpress. Wordfense, or WP Defender... or.. the other 500 that are out there.. those create logs too.

I personally have a namecheap hosting package, where within the cpanel to manage my "server", I have about 4 options of logs I can review. From mail service, web, and so forth.

7 upvotes on reddit
See 12 replies

Top People to Talk to

These are some of the top contributors related to
Wordpress
webhosting
CloudwaysbyDO
H

hopefulusername

No bio available
1117
Karma
23
Posts
934
Comments
View Profile
Chat w/ Profile AI
N

nolo_me

No bio available
264825
Karma
126
Posts
10000
Comments
View Profile
Chat w/ Profile AI
C

chrisdaswiss

No bio available
769
Karma
2
Posts
131
Comments
View Profile
Chat w/ Profile AI
M

Mc_UsernameTaken

No bio available
26370
Karma
54
Posts
1364
Comments
View Profile
Chat w/ Profile AI
T

travisjudegrant

No bio available
21159
Karma
22
Posts
1244
Comments
View Profile
Chat w/ Profile AI
M

Max_Bizcom

No bio available
20
Karma
0
Posts
24
Comments
View Profile
Chat w/ Profile AI
N

nbass668

No bio available
18741
Karma
23
Posts
3601
Comments
View Profile
Chat w/ Profile AI
D

djaysan

No bio available
77
Karma
78
Posts
1217
Comments
View Profile
Chat w/ Profile AI

Related

How to create a website using WordPress

best wordpress themes for beginners

how to optimize wordpress site for seo

AI Answer

🤖

how to secure a wordpress website

Key Considerations for Securing a WordPress Website

  1. Keep WordPress Updated: Regularly update WordPress core, themes, and plugins to patch vulnerabilities. Enable automatic updates if possible.

  2. Use Strong Passwords: Implement strong, unique passwords for all user accounts, especially admin accounts. Consider using a password manager to generate and store them.

  3. Install a Security Plugin: Use a reputable security plugin (e.g., Wordfence, Sucuri) to monitor for threats, scan for malware, and provide firewall protection.

  4. Implement Two-Factor Authentication (2FA): Add an extra layer of security by requiring a second form of verification (like a code sent to your phone) for logging in.

  5. Limit Login Attempts: Prevent brute force attacks by limiting the number of login attempts allowed. Many security plugins offer this feature.

  6. Regular Backups: Schedule regular backups of your website using plugins like UpdraftPlus or BackupBuddy. Store backups offsite to ensure you can restore your site if needed.

  7. Secure Hosting Environment: Choose a reputable hosting provider that prioritizes security and offers features like SSL certificates, firewalls, and regular security audits.

  8. Change Default Admin Username: Avoid using "admin" as your username. Create a new user with admin privileges and delete the default admin account.

  9. Disable Directory Listing: Prevent hackers from viewing your directory structure by adding Options -Indexes to your .htaccess file.

  10. Use HTTPS: Ensure your website uses HTTPS by installing an SSL certificate. This encrypts data between your site and its visitors.

Recommendation: Start with a security plugin like Wordfence for comprehensive protection and consider using a managed WordPress hosting service that includes security features. Regularly review your security settings and stay informed about the latest security threats to keep your site safe.

Still looking for a better answer?

Get more comprehensive results summarized by our most cutting edge AI model. Plus deep Youtube search.

Try Gigabrain Pro for Free
gigaGigaBrain Logo
Support

Who are we?

Get API access

Leave us feedback

Contact us

Legal

Terms of Use

Privacy Policy

Shopping Tools

Product Comparisons

2023 GigaBrain Corporation
As an Amazon Associate, GigaBrain may earn a commission from qualifying purchases.