Most hacked websites do not announce it. The attacker wants the site to keep working while it is used to send spam, host fake pages or redirect visitors. Knowing the signs helps you act early.
Common signs
- Visitors are sent to unrelated or suspicious sites, often only from mobile devices or search results.
- Google or your browser shows a warning about the site.
- New administrator users you did not create.
- Unknown files in wp-content/uploads, especially files ending in .php.
- Pages or posts about pills, gambling or loans that you never wrote.
- Your hosting account sends large amounts of email, or the server is suddenly slow.
First steps
- Keep a copy of the evidence. Download the current files and database before cleaning, so you can study what happened.
- Change passwords. WordPress admins, hosting panel, FTP or SFTP, database and the email account used by the site. Use new, unique passwords.
- Remove unknown administrators and log out all sessions.
- Update everything. WordPress core, plugins and themes. Delete plugins and themes that you do not use.
- Replace core files with a fresh copy of the same WordPress version, and reinstall plugins and themes from their official source.
- Search for backdoors. Look for recently changed files and PHP files in upload folders. A site can be reinfected within hours if one backdoor is left.
Find the way in
Cleaning is not enough unless you learn how the attacker got in. The usual routes are an outdated plugin, a weak or reused password, or a nulled theme. Check the access logs for the first suspicious request.
After the cleanup
Turn on two-factor login for administrators, limit login attempts, keep automatic backups outside the server and review user accounts every month. If customer data may have been exposed, tell the people affected.
Common questions
Should I delete the site and start again?
Not as a first move. Deleting can destroy the evidence you need to find how the attacker got in, and a clean install with the same weak password or old plugin will be attacked again. Contain, preserve a copy, find the way in, then clean.
Do I need to tell my customers?
If customer data may have been exposed, or if the site sent malicious content to visitors, being open and early is usually the better path. Check the rules that apply to your business and keep a short written record of what you found and when.
How long until search warnings disappear?
After the cleanup, request a review through the search engine's webmaster tools. Reviews can take from a few days to longer, so keep the site clean and monitored during that time.
When to ask for help and what to send
If you cannot find or remove the cause yourself, ask for help early. Send the date you noticed the problem, the symptoms you saw, the list of recent changes and plugin updates, and any warning shown by a browser or search engine. Keep the infected copy untouched until a clean copy is secured, because it holds the clues.
A realistic example
A small business notices that its site redirects some visitors to a gambling page, but only from mobile search. The owner removes the visible code, yet it returns the next day. A review finds an old plugin with a known flaw and an unknown administrator account. Closing both ends the problem. Removing the symptom without the way in only buys a day.
Mistakes to avoid
- Removing the visible code and stopping there.
- Keeping old plugins that are no longer updated.
- Reusing the same password after the cleanup.
Quick checklist
- Change every password: WordPress, hosting panel, FTP, database, email.
- Update WordPress core, plugins and themes, and remove unused ones.
- Check for unknown administrator users.
- Scan files for recent changes you did not make.
- Keep a tested backup from before the incident and one from after the cleanup.
If you need help, contact support@mubasher.com.eg and tell us when you first noticed the problem.
