My WordPress site has been hacked: what do I do now?
If your WordPress site has been hacked, do not start deleting things in a hurry. In the first hour: take a full copy of the files and database as they are, change the passwords for hosting, WordPress, the database, FTP and email, delete any administrator you do not recognise, and tell your hosting company. The most common causes: outdated plugins or themes, pirated plugins from unofficial sources, and weak passwords without two-factor authentication. Then clean the site: replace WordPress core files with official copies, reinstall plugins from their sources and check the uploads folder, or restore a clean backup. Request a review from Google if a warning appears. At FortuneCode we clean the site, close the hole and set up a maintenance plan that stops it recurring.
On this page
- Signs your site has been hacked
- What to do in the first hour
- Causes, most common first
- How to clean the site
- When do you need a specialist?
- How FortuneCode handles a hacked site
- The maintenance that prevents a repeat hack (market ranges)
- Our commitments
- How we work with you
- Request a quote
- Frequently asked questions
Signs your site has been hacked
Some hacks are obvious; others are built to stay hidden from you and show only to visitors arriving from Google. Check these signs on a phone and a computer, and from search results, not just by typing the address.
- The site redirects visitors to ad, gambling or pharmacy sites, sometimes on mobile only.
- Google results show titles in strange languages or pages you never created.
- Google or the browser warns that the site may be harmful.
- Administrator users you do not recognise in the WordPress dashboard.
- Your hosting company suspended the site or warned about malware or spam sending.
- Sudden slowness, or strange PHP files in the uploads folder.
What to do in the first hour
The first goal is not cleaning but stopping the damage, keeping the attacker out, and preserving evidence of how they got in.
- Take a full copy of the files and database as they are now, and store it off the server.
- Change every password: the hosting account, every WordPress admin, the database, FTP or SFTP, and the linked email.
- Delete any admin account you do not recognise, and turn on two-factor authentication for the rest.
- Tell your hosting company; they usually have scanning tools and access logs.
- If the site is harming visitors, put it in maintenance mode for now.
- If the site holds customer data, get specialist advice on your obligations under the Saudi Personal Data Protection Law.
Causes, most common first
A hack is rarely aimed at you personally. Most are automated: bots scanning the internet for sites running a plugin with a known vulnerability.
- Outdated plugins or themes with known vulnerabilities.
- Premium plugins or themes downloaded free from unofficial sites, carrying malicious code from day one.
- Weak or reused passwords, without two-factor authentication.
- Abandoned plugins their developer no longer updates.
- Shared hosting where another hacked site on the same account infects yours.
- Overly broad file permissions, or old backups and tools left on the server.
How to clean the site
If you have a clean backup from before the hack, restoring it is the fastest route, provided you update everything immediately afterwards; otherwise the same hole will be used again. Without a backup, clean it manually:
- Replace WordPress core files with an official copy of the same or a newer version.
- Delete all plugins and themes and reinstall them from official sources, removing what you do not use.
- Check the uploads folder and delete any PHP file in it; that folder is for images and documents only.
- Review wp-config.php and .htaccess for strange code or redirects.
- Change the security keys (salts) in wp-config.php to end every open session.
- Search the database for links or code injected into posts and settings.
- If Google shows a warning, open the Security issues report in Search Console and request a review after cleaning.
When do you need a specialist?
If the hack comes back after cleaning, a backdoor was missed or the original hole is still open. The same applies if the site is a store holding customer and order data, if you do not know how to access the server, or if the site stopped working after your cleaning attempt.
A specialist reads the server logs to learn how the attacker got in, cleans without breaking the site, and closes the hole itself rather than only its symptoms.
How FortuneCode handles a hacked site
We secure the accounts first, then clean the files and database, find how the attacker got in and close it, and request removal of any Google warning. After that we set up a maintenance plan: regular updates, off-server backups, two-factor authentication and monitoring.
If the site is old and full of abandoned plugins, we will suggest rebuilding it to a written scope and a delivery date we commit to. You get a written quote within 24 hours.
The maintenance that prevents a repeat hack (market ranges)
Indicative Saudi market ranges in SAR, not a quote.
| Scope | Typical cost | What drives the price |
|---|---|---|
| Maintenance for a small website or store | SAR 1,000–5,000 a year | Security updates, fixes and small edits |
| Hosting and SSL | SAR 300–4,000 a year | Shared for small sites, cloud for heavier ones |
| Monthly support plan for a large website | SAR 1,500–12,000 a month | Security updates only at the low end, a dedicated team at the high end |
We send you a written quote in SAR within 24 hours of the discovery session.
Our commitments
You own the code
Source code, accounts and domain are in your organisation’s name from day one.
Written scope and contract
Scope, milestones and price are agreed in writing before the first line of code.
On-time delivery, guaranteed
The delivery date is written into the contract, and we keep it at every milestone.
Fast technical support
A team that responds quickly after launch and fixes any issue in production.
How we work with you
- 1
Free discovery session
30 minutes with an engineer to understand your needs and how you work.
- 2
Written proposal within 24 hours
Clear scope, milestones, timeline and a price in SAR, with no obligation.
- 3
Contract and staged payments
You pay in stages tied to deliveries, not everything upfront.
- 4
Delivery with weekly reports
Follow progress in the client portal and review every milestone before sign-off.
- 5
Launch, training and support
We launch on schedule, train your team and stay with you with fast support.
Request a quote
Tell us what you need for “Website & System Security” and a specialist will send a written proposal with scope, timeline and price within 24 hours.
Frequently asked questions
Is installing a security plugin enough to clean the site?
Security plugins help with scanning and prevention, but they do not catch every backdoor, and they do not close the hole the attacker used if it is in an outdated plugin. Use one as part of the cleanup, together with updating everything and changing passwords.
Why did the hack come back after I cleaned the site?
Usually because a backdoor remained in a file nobody checked, the vulnerable plugin was not updated, or a stolen password was not changed. Cleaning without knowing how the attacker got in treats the symptom, not the cause.
Google shows a warning on my site. How do I remove it?
Clean the site completely first, then open the Security issues report in Google Search Console and request a review, explaining what you did. The warning is removed once Google confirms the site is clean.
Are premium plugins downloaded for free dangerous?
Yes, and they are one of the most common causes of hacks. Pirated copies often carry hidden malicious code and never receive security updates. Buy the licence from the developer or use an official free alternative.
How do I prevent future hacks?
Update WordPress, plugins and themes regularly, remove what you do not use, use strong passwords with two-factor authentication, and keep backups stored off the server. Most important, make one named person responsible for it rather than leaving it to chance.
Guides and prices to help you decide
- How Much Does a Website Cost in Saudi Arabia in 2026?
- How Much Does It Cost to Build a Mobile App in Saudi Arabia in 2026?
- How Much Does an Online Store Cost in Saudi Arabia in 2026?
- How Much Does Website, App and Software Maintenance Cost in Saudi Arabia in 2026?
- How to choose a mobile app development company in Saudi Arabia: questions, red flags and what a good proposal contains
- What should a software development contract contain? A checklist before you sign
- Outsourcing software development from Saudi Arabia: models, managing a remote team, and the risks
You may also need
Ready to start?
Send us your idea on WhatsApp and get a written proposal with scope, timeline and price within 24 hours.
Talk to us on WhatsAppLast updated: