The most common reasons why WordPress sites are hacked

View in another language:
The most common reasons why WordPress sites are hacked
Categories
Technologies
Author

Benoit Schneider

Managing Technical Director
Date

Over the last few years, at Outsourcify we helped quite a few times some people recover their hacked WordPress website after hackers made it a wreck with malwares and redirects.

Sometimes it’s a straightforward procedure, a few files to delete, the admin user password has usually been changed and should be replaced, in other there’s more to it than that what was initially though. A sever hack might have taken over the login page with a modified .htaccess file or some other PHP redirections to cover it up. In some cases, regardless of how frequently you erase the malware records, they can be mysteriously reinstalled within seconds.

Why do WordPress websites get hacked?

It’s pretty much the same reason as to why computers running Windows get more viruses than Mac or Linux. Hackers tend to focus on creating viruses and attacking the most used systems, it’s easier to target a Windows computer then to try to find the Mac user out of every 100 Windows users. It’s no different with WordPress, almost 30% of the web is running with it so it gets targeted more then Joomla or Drupal that barely have a few percents.

As a hacker when your objective is to divert web search tool activity to pharmaceutical or porn websites, or to send enormous measures of spam messages, you better spend your time analyzing WordPress in its every detail for a security breach than any other CMS.

It has nothing to do with WordPress itself or PHP, but since not all WordPress website owners take the security efforts needed and abandon themselves open to hackers assaults, WordPress stays an easy target. Normally a hacked website has a lot to do with the fact the website was left un-maintained for too long.

How to be a target?

Usually the main reason websites get hacked is because of obsolete software. WordPress is a software application that needs to be updated whenever a new version is available as in many cases the upgrades are security upgrades. All plugins should also be updated frequently, as well as themes when third party themes are used. It is also recommended to update as much as possible the server on which the website is hosted, update its software, Apache or Nginx, PHP and mySQL in the case of a WordPress website.

The thing is being used so broadly and targeted so often, WordPress and PHP are also very often improved. Any security breach is quickly found, analysed and fixed through a security upgrade.

As a website proprietor, it’s important not to disregard these updates. In the event that you would prefer not to do it, it’s advised to have a web developer oversee them for you, most likely in the context of a maintenance monthly or yearly contract.

Proactive solutions are always the best, a website maintenance is like car insurance, you should get it before you have an accident.

A couple of other things that you can do to help secure your WordPress website :

  • Use strong password always (we recommend using the Password Generator tool in the profile page)
  • Use a security plugin to limit login attempts, hide admin and login page
  • Add some form of Captcha to login and contact forms

The iThemes Security plugin can help to manage most of the security needs of WordPress.

In the event that you would prefer not to set it up yourself, simply let us know and I’ll complete it for you!

Clean up a hacked WordPress website

It’s simply impractical to put in an article how to clear the malware and effects from a hacked WordPress website, there are numerous ways to install malware or spam bots to a website. What I prescribe is using services like Sucuri or the iThemes Security plugin to examine your website for malware as well as to give extra security.

These are a couple of spots you could begin to clean :

  • .htaccess
  • index.php
  • wp-config.php
  • “uploads” folder

But the best solution in most cases is to make sure you have daily backups and just overwrite the whole website with the latest backup, it’s the only safe way to make sure nothing’s left after a hack.

Benoit Schneider · Managing Technical Director

After studying to become a Web Engineer at the UTBM in France, Benoit experienced working in various IT departments of large companies in Paris as a web developer then as a project manager before becoming a freelance web consultant in 2010, and finally co-founded Outsourcify in Thailand.

Have a project in mind?
Let's start your project today

Contact Us
Have a project in mind?
Let's start your project today

Related blog articles

Technologies

Building AcadAsia: A Technical Deep Dive into Thailand’s International School Advisory Platform

February 11, 2026

Building AcadAsia: A Technical Deep Dive into Thailand’s International School Advisory Platform
Building AcadAsia: A Technical Deep Dive into Thailand’s International School Advisory Platform
Technologies

How to Choose the Right WordPress Agency: Beyond the Sales Pitch

January 20, 2026

How to Choose the Right WordPress Agency: Beyond the Sales Pitch
How to Choose the Right WordPress Agency: Beyond the Sales Pitch
Technologies

Our Headless WordPress Journey with Astro.js and Vue.js

September 2, 2025

Our Headless WordPress Journey with Astro.js and Vue.js
Our Headless WordPress Journey with Astro.js and Vue.js
Technologies

Will AI Replace Developers? A Reality Check From the Field

March 11, 2026

Will AI Replace Developers? A Reality Check From the Field
Will AI Replace Developers? A Reality Check From the Field
Technologies

Teaching AI and Software Development at Chulalongkorn University: A Two-Hour Conversation That Went Well Beyond the Slides

February 23, 2026

Teaching AI and Software Development at Chulalongkorn University: A Two-Hour Conversation That Went Well Beyond the Slides
Teaching AI and Software Development at Chulalongkorn University: A Two-Hour Conversation That Went Well Beyond the Slides
Technologies

Skipping Figma Doesn’t Mean Skipping Design

February 18, 2026

Skipping Figma Doesn’t Mean Skipping Design
Skipping Figma Doesn’t Mean Skipping Design
Technologies

Vibe Coding Rescue: From MVP to Scalable Platform

February 15, 2026

Vibe Coding Rescue: From MVP to Scalable Platform
Vibe Coding Rescue: From MVP to Scalable Platform
Technologies

Astro Joins Cloudflare: The New Standard for High-Performance Web Architecture

December 14, 2025

Astro Joins Cloudflare: The New Standard for High-Performance Web Architecture
Astro Joins Cloudflare: The New Standard for High-Performance Web Architecture
Technologies

WooCommerce vs Shopify: Which Platform Fits Your Project?

November 21, 2025

WooCommerce vs Shopify: Which Platform Fits Your Project?
WooCommerce vs Shopify: Which Platform Fits Your Project?
Resources

Building a B2B Product: Laying the Right Foundations from Day One

September 29, 2025

Building a B2B Product: Laying the Right Foundations from Day One
Building a B2B Product: Laying the Right Foundations from Day One
Technologies

A ResTech MVP in 1 Month

September 19, 2025

A ResTech MVP in 1 Month
A ResTech MVP in 1 Month
Resources

Why Taking Over a Development Project Is Always a Challenge

August 11, 2025

Why Taking Over a Development Project Is Always a Challenge
Why Taking Over a Development Project Is Always a Challenge
Technologies

From Vibe-Coded Prototype to Production-Ready: How Client Mockups Accelerate Our Work

August 5, 2025

From Vibe-Coded Prototype to Production-Ready: How Client Mockups Accelerate Our Work
From Vibe-Coded Prototype to Production-Ready: How Client Mockups Accelerate Our Work
Technologies

Outsourcify’s 2025 Tech Stack Driving Digital Excellence

August 4, 2025

Outsourcify’s 2025 Tech Stack Driving Digital Excellence
Outsourcify’s 2025 Tech Stack Driving Digital Excellence
Outsourcify Story

What Our Clients Say About Us: A Look at Outsourcify’s Google Reviews

July 30, 2025

What Our Clients Say About Us: A Look at Outsourcify’s Google Reviews
What Our Clients Say About Us: A Look at Outsourcify’s Google Reviews
Outsourcify Story

The Agency Developer: Beyond the Code

July 14, 2025

The Agency Developer: Beyond the Code
The Agency Developer: Beyond the Code
Resources

A Website Is Non-Negotiable in 2025 — But Its Content May Be Training AI

July 9, 2025

A Website Is Non-Negotiable in 2025 — But Its Content May Be Training AI
A Website Is Non-Negotiable in 2025 — But Its Content May Be Training AI
Resources

SaaS Tools Annual Cost Comparison for a 35-User Team – and What You Can Learn from Our Journey

June 11, 2025

SaaS Tools Annual Cost Comparison for a 35-User Team – and What You Can Learn from Our Journey
SaaS Tools Annual Cost Comparison for a 35-User Team – and What You Can Learn from Our Journey
Technologies

Recent Projects at Outsourcify: A Behind-the-Scenes Series

June 2, 2025

Recent Projects at Outsourcify: A Behind-the-Scenes Series
Recent Projects at Outsourcify: A Behind-the-Scenes Series
Resources

A Guide to Thailand’s Online Payment Gateways

May 4, 2025

A Guide to Thailand’s Online Payment Gateways
A Guide to Thailand’s Online Payment Gateways
Technologies

10 Programming Practices Worth Rethinking

April 29, 2025

10 Programming Practices Worth Rethinking
10 Programming Practices Worth Rethinking
Outsourcify Story

The Outsourcify Story #1: Lessons from a decade in Web Development

March 23, 2025

The Outsourcify Story #1: Lessons from a decade in Web Development
The Outsourcify Story #1: Lessons from a decade in Web Development
Technologies

Outsourcify partners with Sisense: the Power of Business Intelligence

February 16, 2025

Outsourcify partners with Sisense: the Power of Business Intelligence
Outsourcify partners with Sisense: the Power of Business Intelligence
Technologies

The 8 Archetypes of Software Engineers Every Team Needs (And How to Harness Their Superpowers)

February 6, 2025

The 8 Archetypes of Software Engineers Every Team Needs (And How to Harness Their Superpowers)
The 8 Archetypes of Software Engineers Every Team Needs (And How to Harness Their Superpowers)
Outsourcify Website

Eco-friendly and Accessible Websites: Building a Sustainable Digital Future

December 10, 2024

Eco-friendly and Accessible Websites: Building a Sustainable Digital Future
Eco-friendly and Accessible Websites: Building a Sustainable Digital Future
Technologies

The impact of API-centric approaches on software development

November 27, 2024

The impact of API-centric approaches on software development
The impact of API-centric approaches on software development
Technologies

How to know you can trust a web agency: A practical guide

November 15, 2024

How to know you can trust a web agency: A practical guide
How to know you can trust a web agency: A practical guide
Technologies

Who’s watching? A guide to privacy on websites and protecting your data

November 14, 2024

Who’s watching? A guide to privacy on websites and protecting your data
Who’s watching? A guide to privacy on websites and protecting your data
Technologies

Understanding the differences between MVP and MMP for smarter product development

November 13, 2024

Understanding the differences between MVP and MMP for smarter product development
Understanding the differences between MVP and MMP for smarter product development
Technologies

The top 3 strategic pitfalls that can derail a tech startup

November 8, 2024

The top 3 strategic pitfalls that can derail a tech startup
The top 3 strategic pitfalls that can derail a tech startup
Technologies

How to avoid AI project failures: lessons from automation

November 7, 2024

How to avoid AI project failures: lessons from automation
How to avoid AI project failures: lessons from automation
Technologies

The top 3 pitfalls facing CTOs and how to overcome them

October 31, 2024

The top 3 pitfalls facing CTOs and how to overcome them
The top 3 pitfalls facing CTOs and how to overcome them
Technologies

How do we extract the needs of a startup in the context of a Define Scope – Requirements Workshop?

October 29, 2024

How do we extract the needs of a startup in the context of a Define Scope – Requirements Workshop?
How do we extract the needs of a startup in the context of a Define Scope – Requirements Workshop?
Technologies

The vital role of a product owner in your web project

October 25, 2024

The vital role of a product owner in your web project
The vital role of a product owner in your web project
Technologies

How to choose a web agency: Top platforms to help you find a reliable partner

October 15, 2024

How to choose a web agency: Top platforms to help you find a reliable partner
How to choose a web agency: Top platforms to help you find a reliable partner
Technologies

The breadth of expertise required for Web Development

October 9, 2024

The breadth of expertise required for Web Development
The breadth of expertise required for Web Development
Technologies

Running daily, a day early: cron jobs for everyone

October 7, 2024

Running daily, a day early: cron jobs for everyone
Running daily, a day early: cron jobs for everyone
Company Activities

Behind the scenes: Triple baby party & reflecting on our company’s sociology

October 4, 2024

Behind the scenes: Triple baby party & reflecting on our company’s sociology
Behind the scenes: Triple baby party & reflecting on our company’s sociology
Technologies

Caching: Our number one suspect

August 9, 2024

Caching: Our number one suspect
Caching: Our number one suspect
Technologies

What is a database and how do you choose one for your web application project?

June 18, 2024

What is a database and how do you choose one for your web application project?
What is a database and how do you choose one for your web application project?
Technologies

Outsourcify’s expertise with the Astro framework

June 11, 2024

Outsourcify’s expertise with the Astro framework
Outsourcify’s expertise with the Astro framework
Technologies

What is an API and how does Outsourcify use them?

May 22, 2024

What is an API and how does Outsourcify use them?
What is an API and how does Outsourcify use them?
Technologies

Which LLMs are we using to facilitate the development at Outsourcify?

May 10, 2024

Which LLMs are we using to facilitate the development at Outsourcify?
Which LLMs are we using to facilitate the development at Outsourcify?
Technologies

Integrating an AI service for Real Estate

January 19, 2024

Integrating an AI service for Real Estate
Integrating an AI service for Real Estate
Technologies

User Interface(UI) design process, before & after.

January 14, 2021

User Interface(UI) design process, before & after.
User Interface(UI) design process, before & after.
Technologies

Why and how to migrate from Drupal to WordPress?

November 13, 2020

Why and how to migrate from Drupal to WordPress?
Why and how to migrate from Drupal to WordPress?
Resources

How to achieve 100 on PageSpeed Insights

May 3, 2019

How to achieve 100 on PageSpeed Insights
How to achieve 100 on PageSpeed Insights
Outsourcify Website

Why would you use WordPress for a corporate website in 2019?

March 17, 2019

Why would you use WordPress for a corporate website in 2019?
Why would you use WordPress for a corporate website in 2019?
Technologies

Creating your own blocks in Gutenberg with ACF

January 26, 2019

Creating your own blocks in Gutenberg with ACF
Creating your own blocks in Gutenberg with ACF
Technologies

How will the new version 5 and the Gutenberg editor impact your WordPress website?

December 5, 2018

How will the new version 5 and the Gutenberg editor impact your WordPress website?
How will the new version 5 and the Gutenberg editor impact your WordPress website?