WordPress Site Hacked: What to Do Step by Step

Site Hackeado: O Que Fazer Passo a Passo

Discovering your WordPress site has been hacked is a stressful experience. Fast response determines whether you lose days of business, SEO rankings, and customer trust. This guide covers the exact steps to take if your WordPress site is compromised.

Quick Answer

Complete guide to recovering a hacked WordPress site: immediate response, cleanup, SEO recovery, prevention. Protect your business.

Table of Contents(7 sections)
  1. Immediate Response (First Hour)
  2. Identify the Hack
  3. Clean the Infection
  4. Security Hardening Post-Cleanup
  5. SEO Recovery After Hack
  6. Preventing Future Hacks
  7. Frequently Asked Questions

Immediate Response (First Hour)

Priority actions: (1) Take site offline temporarily if actively damaging visitors (malware distribution, obvious defacement). Enable maintenance mode. (2) Document everything for forensics (screenshots, suspicious URLs/content, timestamps). (3) Change ALL passwords immediately: WordPress admin, hosting account, FTP, database, email. Use strong unique passwords. (4) Contact hosting provider — they may have logs and specific tools.

Identify the Hack

Common WordPress hack indicators: unexpected admin accounts, modified core files, suspicious PHP files in uploads directory, Google warnings in Search Console, antivirus flagging site, visitors reporting malware warnings, SEO rankings dropping suddenly, spam content appearing. Use tools: Wordfence Security Scanner, Sucuri SiteCheck, MalCare, server-side scan from host.

Clean the Infection

Options: (1) Restore from clean backup (best option if you have recent clean backup — before infection). (2) Professional cleanup service: Sucuri (€200-€500 cleanup), Wordfence (€490 cleanup service), MalCare. (3) Mannual cleanup if technically capable: identify infected files, replace core WordPress files, remove malicious plugins/themes, clean database tables, remove backdoor files, update all passwords.

Security Hardening Post-Cleanup

Prevent re-infection: update WordPress core, all plugins, all themes immediately. Remove unused plugins and themes. Install security plugin (Wordfence or Sucuri). Enable 2FA for admin logins. Change database table prefix from default “wp_”. Implement login attempt limits. Review file permissions. Add .htaccess security rules. Set up regular backups (daily automated).

SEO Recovery After Hack

Hacked sites often get Google penalties: “This site may be hacked” warnings in SERPs, spam content indexed, keyword rankings crashed. Recovery: (1) Clean site completely. (2) Google Search Console: Security Issues → Request Review. (3) Submit XML sitemap. (4) Monitor for 2-4 weeks for warning removal. (5) Content audit — remove any spam injected content, redirect spam URLs appropriately. (6) Rebuild trust signals gradually.

Preventing Future Hacks

Proactive security: Keep everything updated (WordPress, plugins, themes). Use reputable plugins only (check reviews, update frequency). Strong passwords + 2FA for all admin users. Regular backups (daily, stored off-site). Managed WordPress hosting (managed WordPress enterprise, another premium managed provider WordPress, Flywheel include security). Security plugin (Wordfence or Sucuri). SSL certificate always active. Monitor for suspicious activity.

Frequently Asked Questions

How much does it cost to fix a hacked WordPress site?

DIY cleanup: free but technical skill required (10-20 hours typically). Professional cleanup services: Sucuri €199-€499/one-time, Wordfence €490/one-time, MalCare €99/one-time plus annual plans. Managed hosting migrations: €500-€2,000 (new host includes clean installation). Ongoing security monitoring: €15-€100/month depending on service level.

How long does cleanup take?

Yesple infections: 2-6 hours with proper tools. Complex infections (backdoors, multiple injections): 10-30 hours. Professional services typically guarantee cleanup within 24-72 hours. If you don’t have recent clean backup, full mannual rebuild from clean WordPress install may be fastest option (keep database, replace files).

Will Google remove the “hacked” warning?

Yes, after you clean the site AND request review. Timeline: 2-14 days typically after Security Issues review requested in GSC. Site must be fully cleaned (Google rechecks). Repeated hacks delay removal — security hardening critical to prevent re-infection and profard warnings.

How to prevent getting hacked again?

Essential prevention stack: daily automated backups to separate location, all software updated continuously, 2FA on all admin accounts, strong unique passwords, limited admin users (minimum necessary), security plugin monitoring, SSL always active, managed WordPress host (security included), monthly security audits. Cost: €30-€200/month for complete prevention stack.

Should I switch WordPress hosts after being hacked?

Not necessarily — depends on cause. If hack was due to outdated software/plugins (your responsibility): same host OK with better practices. If hack was due to shared hosting vulnerabilities: switch to managed WordPress hosting (another premium managed provider WordPress, managed WordPress enterprise, Flywheel) which includes security measures. Managed hosting typically €25-€100+/month but worth it for peace of mind.

Need help with SEO?

Free consultation with no commitment. Reply within 24h.

Request Free Proposal

Related Articles

More SEO and digital marketing content you might find interesting.

CRM e Automação para Imobiliárias: O Sistema Que Fecha Negócios Sozinho Guias SEO
Oct 19, 2026

CRM and Automation for Real Estate: The System That Closes Deals

CRM and automation for Portuguese real estate is the difference between agents who close 20-30 transactions annually and those stuck...

Read article
Como fazer um site passo a passo Alojamento Web
Nov 1, 2026

How to Make a Website: Step-by-Step Guide (Free or Professional)

To make a website you need four things: a domain, hosting, a platform (such as WordPress or a website builder)...

Read article
Equipa a trabalhar em estratégia de marketing digital Guias SEO
Oct 19, 2026

Digital Marketing: Complete Guide for Portuguese Businesses

Digital marketing encompasses all marketing activities using digital channels — SEO, social media, email, content, paid ads. Portuguese businesses successfully...

Read article
Contratar Agência vs Marketing Interno: Prós e Contras Guias SEO
Oct 19, 2026

Facebook Instagram Ads Cost in Portugal

Understanding Facebook and Instagram advertising costs in Portugal helps you budget realistically and compare agency proposals. In 2026, Meta Ads...

Read article
Ferramentas de IA para Marketing Digital: As 15 Melhores em 2026 Guias SEO
Oct 19, 2026

Best AI Tools for Digital Marketing

AI tools for digital marketing have evolved from novelty to necessity. Portuguese agencies using AI effectively deliver 3x more work...

Read article
WhatsApp Business aberto num smartphone Guias SEO
Oct 19, 2026

WhatsApp Business Marketing Guide

WhatsApp has 2+ billion users globally, making it the world’s most-used messaging app. In Portugal, WhatsApp has 85%+ penetration —...

Read article
Alojamento web profissional em Portugal Alojamento Web
Oct 31, 2026

Hostinger + WooCommerce: How to Create Online Store

Complete guide to create online store with Hostinger + WooCommerce: plans, setup, Portuguese payments (MB Way, Multibanco), performance.

Read article
Google Discover: Atualização Core Concluída e Novos Riscos da IA Guias SEO
Oct 19, 2026

Google Discover Core Update Complete and New AI Risks

Google Discover core update completed rollout in early 2026 with specific implications and new risks emerging from AI content proliferation...

Read article
Reviews e testemunhos como prova social online Guias SEO
Oct 19, 2026

Social Proof Guide: Reviews, Testimonials, UGC

Social proof — reviews, testimonials, case studies, user-generated content, and endorsements — is one of the most powerful conversion drivers...

Read article
Quanto Custa Consultoria SEO em Portugal Guias SEO
Oct 19, 2026

How Much Does SEO Consulting Cost in Portugal? [Full Pricing Guide]

SEO consulting in Portugal costs €500-€5.000/month for ongoing retainers, with one-time audits ranging €500-€3.000 and project-based work €1.500-€15.000. The wide...

Read article
Dispositivos tecnológicos modernos Alojamento Web
Oct 31, 2026

Hostinger vs National Competitors: Which to Choose?

Technical comparison between Hostinger and SiteGround: pricing, performance, WordPress tools, security and support. Final recommendation by profile.

Read article
Mercedes-Benz em destaque - website de stand automóvel que converte Guias SEO
Oct 19, 2026

How to Create a Car Dealership Website That Converts

A car dealership website is your 24/7 salesperson. While the showroom closes at night, the website keeps generating leads. In...

Read article
View All Articles