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.

Instagram vs Facebook para Empresas: Qual Usar Guias SEO
Oct 19, 2026

Instagram vs Facebook for Business: Which Should You Choose?

Choose Instagram if you sell something that looks good in images or video and your customer is up to around...

Read article
Criar loja online em portugal Como Sell Online
Nov 1, 2026

Dropshipping in Portugal: How to Start Without Inventory

Complete dropshipping guide for Portugal: legality, best suppliers (BigBuy, Spocket, AliExpress), profitable niches, mistakes to avoid.

Read article
Carro desportivo - vídeo marketing automóvel para stands e concessionários Blog Marketing Automóvel
Oct 21, 2026

Importing Cars from Germany to Portugal: Complete Guide

Importing a car from Germany to Portugal can save between 15% and 35% on the final vehicle price compared to...

Read article
Ginasios Guias SEO
Oct 19, 2026

Digital Marketing for Gyms: Complete Portuguese Guide

Digital marketing for gyms in Portugal requires industry-specific approaches that generic marketing doesn’t deliver. Portuguese gym industry grew 25% since...

Read article
Dashboard de vendas online E-commerce & Marketing
Nov 1, 2026

How Much to Open an Online Store in Portugal: Real Costs

Real prices to open online store in Portugal: setup (€500-€20,000) + monthly (€50-€5,000). Transparent breakdown by store type and sector.

Read article
Profissional numa chamada comercial ao portátil Guias SEO
Nov 27, 2026

What Are Leads and How to Get More for Your Business

A lead is a person or company that has shown interest in what you sell and left you a way...

Read article
Geração Z Muda a Forma de Pesquisar: O Impacto Real no SEO Guias SEO
Oct 19, 2026

Gen Z Is Changing How People Search: Real Impact on SEO

Gen Z search behavior (ages 12-27 in 2026) differs fundamentally from older generations — TikTok as primary search engine, visual...

Read article
O Que São Fan-Out Queries e Como Estão a Mudar a Pesquisa com IA Guias SEO
Oct 19, 2026

Query Fan-Out: What It Is and How It Affects Your Site in AI

Query fan-out is the technique in which an AI search system splits the user’s question into several smaller searches, runs...

Read article
Marketing B2B no LinkedIn num computador portátil Guias SEO
Oct 19, 2026

LinkedIn Marketing: How to Use LinkedIn to Generate B2B Leads

LinkedIn marketing means using LinkedIn so that the decision-makers at the companies you want to sell to get to know...

Read article
Gestao Stock Stands Automoveis Comprar Melhor Guias SEO
Oct 19, 2026

Buying Cars for a Dealership and Managing Used Car Stock

Buying cars for a dealership at a profit starts before the purchase: knowing which cars your customers are looking for,...

Read article
Google PageSpeed Insights Tools
Nov 1, 2026

Google PageSpeed Insights: How to Read the Report and Improve Your Score

Google PageSpeed Insights is a free Google tool that measures a page’s speed and experience on mobile and desktop, giving...

Read article
Protocolo Universal de Comércio da Google Muda o SEO para Ecommerce Guias SEO
Oct 19, 2026

Google Universal Commerce Protocol Changes E-commerce SEO

Google’s Universal Commerce Protocol (announced late 2025, launching 2026) standardizes how e-commerce data flows through Google ecosystem — Shopping, Search,...

Read article
View All Articles