Did you know that 7 out of every 10 WordPress websites face the risk of being attacked? This 73% figure isn't just a dry statistic; it's a wake-up call for millions of website owners around the world. Imagine waking up one morning, opening your website, and finding all your content gone, replaced by shady ads or a message saying the website has been hacked. That is the real story of thousands of WordPress website owners every day.
In this article, we will take a deep dive into why WordPress has become such a lucrative target for hackers, the main reasons websites are vulnerable to attacks, and most importantly – specific solutions you can implement right away to protect your digital assets. Whether you are a beginner or experienced, this article will give you all the knowledge and tools you need to turn your WordPress website into an impregnable fortress.
WordPress and an Alarming Reality: 73% of Websites Get Attacked
The true story of a WordPress website that was hacked and lost all its data
Minh, the owner of an online handmade goods store in Hanoi, spent 2 years building a WordPress website with over 500 products and 10,000 loyal customers. One morning in March 2023, he received a flood of complaint emails from customers saying the website was displaying pornographic content. When he checked, he discovered the website had been completely hacked, the customer database had been stolen, and Google had blacklisted the website.
The cost of recovery? More than 50 million VND for expert services, 3 months of lost revenue, and 40% of customers lost due to broken trust. Mr. Minh's story is not an exception – it is the reality thousands of WordPress website owners face every day.
Where the 73% figure comes from and what this statistic really means
The 73% figure comes from a 2023 study by Sucuri, one of the world's leading website security companies. According to its Website Hacked Trend Report, of all the hacked websites analyzed, WordPress accounted for 73% – an alarming number.
However, it is important to understand that this figure does not mean WordPress is less secure than other platforms. In fact, WordPress powers 43.5% of all websites on the Internet (according to W3Techs), making it the most lucrative target for hackers. Just as thieves tend to target more densely populated neighborhoods, hackers focus on the most popular platform to maximize their "profits".
Why has WordPress become hackers' top target?
There are three main reasons WordPress has become a favorite target:
First, popularity creates "economies of scale" for hackers. When they develop an attack tool for WordPress, hackers can use it on millions of different websites. A single vulnerability in a popular plugin can affect hundreds of thousands of websites at once.
Second, WordPress is an open-source platform, meaning all of its code is public. While this helps the community develop and improve security, it also lets hackers study the code and find vulnerabilities more easily.
Third, the huge ecosystem of plugins and themes (over 60,000 plugins and 10,000 themes) creates countless potential weak points. Every plugin is a door that can be opened if it isn't properly secured.
Serious consequences when a website is attacked
The consequences of a hack don't stop at data loss. According to IBM Security research, the average cost of a data breach is 4.35 million USD (about 100 billion VND) for large enterprises.
For small and medium-sized websites in Vietnam, the consequences include:
- Loss of SEO rankings: Google may lower your rankings or remove the website from search results entirely
- Blacklisting and warnings: The browser displays a "This site is not secure" warning, causing 95% of users to leave immediately
- Loss of customer data: Violating GDPR or data protection laws can lead to fines and lawsuits
- Recovery costs: From 10-100 million VND depending on severity
- Loss of brand reputation: Customers lose trust, and you may lose 30-50% of revenue in the 6 months after the incident
7 Main Reasons WordPress Websites Are Easily Hacked
Outdated or nulled plugins and themes – Enemy No. 1
According to Wordfence, 52% of WordPress hacks stem from plugin vulnerabilities. This is the leading cause and also the easiest to prevent.
Outdated plugins are plugins that aren't updated regularly. When developers discover a security vulnerability and release a patch, websites that don't update become easy targets. Hackers often mass-scan websites looking for old plugin versions with publicly known vulnerabilities.
Nulled plugins and themes (unlicensed cracked versions) are far more dangerous. These files often come with built-in backdoors, malware, or cleverly embedded malicious code. According to Sucuri research, 100% of the nulled themes tested contained malicious code. You might save a few hundred thousand dong, but at the cost of risking your entire website.
Weak passwords and unprotected admin access
Passwords like "admin/admin" or "admin/123456" are still frighteningly common. According to NordPass, "123456" was still the most used password in 2023, appearing more than 4.5 million times.
Common password problems:
- Using the default username "admin"
- Passwords shorter than 12 characters
- Not using a mix of uppercase, lowercase, numbers, and special characters
- Using the same password for multiple accounts
- Not changing passwords periodically
A brute force attack can try millions of password combinations in a few hours. A weak password can be cracked in just minutes.
WordPress Core not updated regularly
WordPress releases security updates regularly, but many website owners ignore these notifications. Why? They're afraid the website will break after updating, or they simply don't know how to update safely.
Statistics show that only 38% of WordPress websites are running the latest version. The other 62% are using old versions with publicly disclosed security vulnerabilities. It's like leaving your front door wide open even though you know there are burglars in the neighborhood.
Each WordPress update doesn't just add new features; it also patches serious security vulnerabilities. Delaying updates means leaving your website vulnerable.
Cheap hosting with poor security
Many people choose cheap hosting (under 500k VND/year) to save money, not realizing it's one of the most dangerous decisions they can make. Cheap hosting often has these problems:
- Overloaded shared hosting: Hundreds of websites share one server; if one website is hacked, the others are affected too
- No firewall or basic security: To cut costs, providers skimp on security measures
- Outdated server software: Old versions of PHP, MySQL, Apache/Nginx with many vulnerabilities
- No automatic backups: When you get hacked, you have no way to recover
- Poor technical support: When problems arise, you have to handle them yourself or wait for days
Missing SSL/HTTPS and data encryption
SSL (Secure Sockets Layer) encrypts data transmitted between the browser and the server. If a website doesn't have SSL, all information (including login passwords) is sent as plain text and can easily be stolen.
Since 2018, Google Chrome has marked all HTTP websites as "Not Secure". This not only affects security but also lowers SEO rankings and conversion rates. According to research, 84% of users will abandon a transaction if they see a security warning.
The Most Common Types of Attacks on WordPress
Brute Force Attack – Exhaustive password guessing
Brute Force is a simple but effective attack method: hackers use bots to try millions of username/password combinations until they find the right one.
Warning signs:
- Hundreds of failed login attempts in the logs
- The website is unusually slow due to request overload
- Receiving warning emails about multiple failed logins
According to Wordfence, the average WordPress website suffers 90 brute force attacks per day. Websites without protection will soon be breached.
SQL Injection and Cross-Site Scripting (XSS)
SQL Injection is a technique in which hackers inject malicious SQL code into input forms (search, login, comments) to directly access the database. A successful attack can allow hackers to:
- View all data in the database
- Modify or delete data
- Create new admin accounts
- Take complete control of the website
Cross-Site Scripting (XSS) lets hackers inject malicious JavaScript into the website. When users visit, this script runs and can steal cookies and sessions, or redirect users to fake websites.
Malware, backdoors, and malicious code in plugins
Malware (malicious software) can be installed through infected plugins, nulled themes, or by exploiting vulnerabilities. Common types of malware:
- Backdoor: Creates a "backdoor" that lets hackers return at any time, even after you change your password
- Pharma hack: Injects illegal pharmaceutical links into the website
- SEO spam: Creates thousands of spam pages to exploit your SEO rankings
- Cryptominer: Uses your server resources to mine cryptocurrency
Warning signs: A slow website, strange files appearing in the wp-content folder, Google malware warnings, unusual traffic from unfamiliar countries.
DDoS Attack – Distributed Denial of Service
DDoS (Distributed Denial of Service) isn't about stealing data but about taking a website down by sending millions of fake requests at once. The server can't handle the massive traffic and stops working.
Consequences:
- The website goes completely offline and customers can't access it
- Lost revenue during the attack
- Bandwidth costs skyrocket
- SEO rankings suffer if it continues
15-Step Basic WordPress Security Checklist
Group 1: Account and access security (Mandatory)
Step 1: Create strong passwords for all accounts
- Use at least 16 characters
- Combine uppercase, lowercase, numbers, and special characters
- Use a password manager such as LastPass or 1Password
- Never reuse passwords
Step 2: Change the default "admin" username
- Create a unique, hard-to-guess username
- Don't use your company name or personal name
Step 3: Enable Two-Factor Authentication (2FA)
- Install a plugin such as Google Authenticator or Wordfence Login Security
- Require an OTP code from your phone at every login
Step 4: Limit failed login attempts
- Use the Limit Login Attempts Reloaded plugin
- Lock out an IP after 3-5 failed logins
Step 5: Change the default login URL
- Instead of wp-admin, change it to a custom URL
- Use the WPS Hide Login plugin
Group 2: Updating and managing Plugins/Themes
Step 6: Update WordPress Core as soon as a new version is out
- Enable automatic updates for minor releases
- Back up before updating a major version
Step 7: Only install plugins/themes from reputable sources
- The official WordPress.org repository
- Reputable developers with many good reviews
- Check the most recent update (ideally within 6 months)
Step 8: Remove unused plugins and themes
- Don't just deactivate them; delete them completely
- Every unused plugin is a potential vulnerability
Step 9: Update plugins/themes regularly
- Check for updates at least weekly
- Read the changelog to learn about security patches
Group 3: Protecting files and the database
Step 10: Install an SSL certificate
- Use free Let's Encrypt or a paid SSL certificate
- Force HTTPS across the entire website
Step 11: Change the database prefix
- The default is wp_; change it to a random prefix
- Makes SQL injection harder
Step 12: Protect the wp-config.php file
- Move it to the parent directory (outside public_html)
- Add protection code in .htaccess
Group 4: Backup and monitoring
Step 13: Set up daily automatic backups
- Use UpdraftPlus or BackupBuddy
- Store backups elsewhere (Google Drive, Dropbox)
- Test restoring backups periodically
Step 14: Install a security plugin and firewall
- Wordfence or Sucuri Security (free)
- Enable the firewall and malware scan
Step 15: Monitor activity and logs
- Install WP Activity Log to track every change
- Get email alerts when there is unusual activity
Top 10 Best WordPress Security Plugins of 2024
Comprehensive security plugins
1. Wordfence Security (Free + Premium $119/year)
Pros:
- Powerful firewall with continuously updated rules
- Malware scanner with a database of 44 million signatures
- Login security with built-in 2FA
- Live traffic monitoring
- The free version is already very complete
Cons:
- A bit heavy; may slow down small websites
- Complex interface for beginners
2. Sucuri Security (Free + Platform from $199/year)
Pros:
- Professional malware scanner
- Monitoring blacklist status
- Post-hack security actions
- 1-click WordPress hardening
- Excellent customer support
Cons:
- The free version has limited features
- Firewall is only available in paid plans
3. iThemes Security (Free + Pro $99/year)
Pros:
- 30+ ways to protect your website
- Easy to use with a setup wizard
- 2FA, brute force protection
- Built-in database backup
- Reasonable pricing
Cons:
- No malware scanner in the free version
- Fewer features than Wordfence
Automatic backup plugins
4. UpdraftPlus (Free + Premium from $70/year)
The most popular backup plugin with 3 million+ installs. It lets you back up your entire website and store it on Google Drive, Dropbox, S3, etc. The free version is enough for most needs.
5. BackupBuddy ($80/year)
A premium backup solution with website migration, real-time backup, and its own cloud storage. Suitable for e-commerce websites.
Specialized plugins
6. Limit Login Attempts Reloaded (Free)
Blocks brute force simply and effectively. Limits failed login attempts and automatically locks out IPs.
7. WPS Hide Login (Free)
Changes the wp-admin login URL to a custom URL. Prevents automated bot attacks.
8. WP Activity Log (Free + Premium $99/year)
Records every change on the website: who logged in, what they edited, and when. Essential for websites with multiple administrators.
9. Shield Security (Free + Pro $100/year)
An all-in-one security plugin that's lighter than Wordfence, suitable for shared hosting. It has a unique feature that automatically disables itself if it breaks the website.
10. All In One WP Security (Free)
A comprehensive free security plugin with firewall, login security, and database security. An intuitive interface with a chart rating your security level.
Advanced Solutions: Hardening WordPress Like an Expert
Configuring .htaccess for stronger security
The .htaccess file is a powerful tool for protecting WordPress. Add the following code snippets (back up the original file before editing):
Protect wp-config.php:
<files wp-config.php>
order allow,deny
deny from all
</files>
Disable directory browsing:
Options -Indexes
Protect the .htaccess file:
<files .htaccess>
order allow,deny
deny from all
</files>
Block access to sensitive files:
<FilesMatch "^.*(error_log|wp-config\.php|php.ini|\.[hH][tT][aApP].*)$">
Order deny,allow
Deny from all
</FilesMatch>
Advanced wp-config.php configuration
Disable the file editor:
define('DISALLOW_FILE_EDIT', true);
This prevents editing plugins/themes from the dashboard, so hackers can't exploit it.
Limit the number of post revisions:
define('WP_POST_REVISIONS', 3);
Reduces database size and improves performance.
Change security keys:
Visit https://api.wordpress.org/secret-key/1.1/salt/ to generate new keys and replace them in wp-config.php. Doing this will log out all users and invalidate old sessions.
Deploy a Web Application Firewall (WAF)
A WAF is a web application firewall that filters traffic before it reaches the server. There are two types:
Cloud-based WAF (Cloudflare, Sucuri): Traffic passes through their servers first and is filtered clean before reaching your website. The advantage is reduced server load and DDoS protection.
Plugin-based WAF (Wordfence): Runs on your server. The advantage is full control; the downside is that it consumes server resources.
Recommendation: Combine Cloudflare (free) + Wordfence for double-layer protection.
Deploy Two-Factor Authentication (2FA) for all admins
2FA adds an extra layer of security: in addition to a password, an OTP code from your phone is required. Even if your password is leaked, hackers still can't log in.
The best 2FA plugins:
- Google Authenticator (miniOrange)
- Wordfence Login Security
- Two Factor Authentication (Plugin People)
Note: Save your backup codes in case you lose your phone.
Security Headers and Content Security Policy
Add HTTP security headers to .htaccess or use a plugin:
<IfModule mod_headers.c>
Header set X-XSS-Protection "1; mode=block"
Header set X-Content-Type-Options "nosniff"
Header set X-Frame-Options "SAMEORIGIN"
Header set Referrer-Policy "strict-origin-when-cross-origin"
</IfModule>
These headers protect against XSS, clickjacking, and other common attacks.
Detecting and Handling a Hacked Website
7 signs your website has been compromised
- The website automatically redirects to other sites (gambling, pharmaceuticals)
- Google warnings "This site may be hacked" or "Deceptive site ahead"
- Unfamiliar admin accounts appear in the users list
- New files and folders appear in wp-content or uploads
- The website is unusually slow due to cryptominers or spam
- Spam emails being sent from your website
- Hosting warnings about unusual resource usage
A 5-step emergency response process
Step 1: Enable maintenance mode immediately
Use the WP Maintenance Mode plugin to display an "Under Maintenance" page to users. This prevents them from accessing the infected website and protects their personal information.
Step 2: Change ALL passwords
- WordPress admin password
- Database password
- FTP/SFTP password
- Hosting control panel password
- Linked email password
Step 3: Scan and identify malware
Use multiple tools to be sure:
- Wordfence Scan (from the dashboard if still accessible)
- Sucuri SiteCheck (online scanner)
- VirusTotal (upload suspicious files)
- Manually check WordPress core files
Step 4: Remove malware and backdoors
There are 3 methods:
Method 1: Use a plugin (easiest)
- Wordfence or Sucuri have malware cleaning features
- Only effective against common malware
Method 2: Reinstall WordPress (safest)
- Back up the database and wp-content
- Delete all WordPress files
- Install a fresh, clean WordPress
- Restore the database and wp-content after scanning
Method 3: Hire an expert (for complex cases)
- Costs 5-20 million VND
- Guaranteed 100% clean removal
Step 5: Patch vulnerabilities and strengthen security
Identify where the hacker got in:
- Outdated plugin/theme?
- Weak password?
- Compromised hosting?
Patch that vulnerability and implement all the security measures mentioned above.
Restoring your website from a backup
If you have a clean backup:
- Determine when the website was hacked (check the logs)
- Choose a backup from before that time
- Restore the database and files
- Update WordPress, plugins, and themes to the latest versions
- Change all passwords
- Implement security measures so you don't get hacked again
Contacting Google Search Console after an incident
After cleaning your website:
- Log in to Google Search Console
- Go to Security Issues
- Click "Request a review"
- Explain what you did to fix the problem
- Wait 3-7 days for Google to review
Do the same with other webmaster tools (Bing, Yandex).
WordPress Security Costs: How Much Investment Is Enough?
Cost breakdown by level
Level 1: Basic (0-1 million VND/year)
Suitable for: Personal blogs, small websites
- Hosting with free SSL: 500k-1M VND/year
- Free security plugin (Wordfence Free)
- Manual backup or UpdraftPlus Free
- Self-managed and self-updated
Protection level: 60-70%
Level 2: Intermediate (3-5 million VND/year)
Suitable for: Small business websites, small e-commerce sites
- Better hosting with daily backups: 2M VND/year
- Wordfence Premium: 2.8M VND/year
- Cloudflare Pro (optional): 500k VND/month
- Monitoring service
Protection level: 85-90%
Level 3: Professional (10-30 million VND/year)
Suitable for: Large e-commerce sites, corporate websites
- Managed WordPress Hosting: 5-10M VND/year
- Sucuri Platform: 5M VND/year
- Professional security service: 10-15M VND/year
- Periodic penetration testing: 5-10M VND/test
Protection level: 95-98%
Comparison: Prevention costs vs. recovery costs
Prevention costs (annual):
- Good hosting: 2 million
- Premium security plugin: 3 million
- Backup service: 1 million
- Total: 6 million VND/year
Recovery costs after a hack:
- Malware cleanup service: 5-15 million
- Lost revenue (1 week offline): 10-50 million
- SEO recovery costs: 10-30 million
- Lost customers (incalculable)
- Total: 25-100 million VND
Conclusion: Investing 6 million to avoid losing 50-100 million is a wise decision.
WordPress security services in Vietnam
Some reputable providers:
- BKAV: Professional website security services
- VNCS: Comprehensive security solutions
- WordPress freelancers: 500k-2M VND/month for maintenance
- Web design companies: Usually offer maintenance packages that include security
Note: Check their portfolio and reviews, and ask for a clear contract before using a service.
Conclusion: Security Is a Journey, Not a Destination
The 5 most important actions – Do them today
- Update WordPress, plugins, and themes to the latest versions (30 minutes)
- Change your admin password to a strong password of 16+ characters (10 minutes)
- Install a security plugin Wordfence or Sucuri (20 minutes)
- Set up automatic backups with UpdraftPlus (30 minutes)
- Enable SSL/HTTPS if you do not have one yet (contact your host – 1 hour)
Total time: Less than 2 hours to protect your digital assets.
A long-term WordPress security roadmap
First 30 days:
- Complete the basic 15-step checklist
- Scan for malware and make sure the website is clean
- Set up monitoring and alerts
- Create a backup process and test restores
60 days:
- Deploy 2FA for all admins
- Configure a WAF and security headers
- Audit all plugins/themes and remove unneeded ones
- Sign up for a third-party monitoring service
90 days:
- Harden WordPress with .htaccess and wp-config.php
- Deploy a CDN with security (Cloudflare)
- Create a disaster recovery plan
- Train your team on basic security
Long-term maintenance:
- Weekly updates
- Weekly malware scans
- Change passwords every 3 months
- Review access logs monthly
- Penetration testing every 6 months (for critical websites)
Resources and community support
WordPress Vietnam community:
- Facebook Group "WordPress Việt Nam" (50k+ members)
- Forum WPViet.net
- WordPress Meetup HCM/Hanoi (offline events)
Learning resources:
- WordPress Codex (official documentation)
- WPBeginner.com (English, with detailed guides)
- Thachpham.com (Vietnamese, high quality)
Free testing tools:
- Sucuri SiteCheck: https://sitecheck.sucuri.net
- VirusTotal: https://www.virustotal.com
- Security Headers: https://securityheaders.com
- SSL Labs: https://www.ssllabs.com/ssltest/
WordPress security is not a "set it and forget it" task. It is an ongoing process that requires regular attention and updates. But with the right knowledge and tools, you can absolutely protect your website from 99% of attacks.
Remember: The cost of security is always far lower than the cost of recovering after a hack. Don't let your website become one of the 73% of WordPress websites that get attacked. Take action today to protect your valuable digital assets!
Are you ready to protect your WordPress website? Start with the 5 most important actions right now. And do not forget to share this article with friends who also use WordPress – you could help them avoid the disaster of losing their website!