{"id":20206,"date":"2019-06-12T12:30:04","date_gmt":"2019-06-12T12:30:04","guid":{"rendered":"https:\/\/www.heartinternet.uk\/blog\/?p=20206"},"modified":"2019-06-12T12:30:04","modified_gmt":"2019-06-12T12:30:04","slug":"how-to-fix-a-hacked-wordpress-website","status":"publish","type":"post","link":"https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/","title":{"rendered":"How to fix a hacked WordPress website"},"content":{"rendered":"<p>When it comes to WordPress, \u201chacked\u201d is never a word you want to hear. Unfortunately, it happens more often than you think. According to Sucuri&#8217;s latest Hacked Website report, <a href=\"https:\/\/sucuri.net\/reports\/2017-hacked-website-report\" target=\"_blank\" rel=\"noopener noreferrer\">WordPress infections rose from 74% in 2016 Q3 to 83% in 2017<\/a>.<\/p>\n<p>You\u2019re likely aware of the consequences: loss of search engine rankings, exposing site visitors to viruses, damaged reputation due to redirects to bad neighbourhood sites or worse, loss of the entire site data.<\/p>\n<p>So, suppose you find yourself in a worst-case scenario and your site or one of your client\u2019s WordPress sites gets hacked. What do you do?<\/p>\n<p>This infographic from Sucuri outlines the steps to follow to <a href=\"https:\/\/sucuri.net\/infographics\/hacked-wordpress\" target=\"_blank\" rel=\"noopener noreferrer\">remove malware and fix a hacked WordPress site<\/a>.<\/p>\n<p>For a more in-depth version, read on as we walk you through the steps to follow to identify and clean a WordPress hack. We\u2019ll also share some valuable tips on how to secure WordPress to prevent further attacks.<\/p>\n<p>Note: If you don&#8217;t want to go through all these steps manually, you can <a href=\"https:\/\/www.heartinternet.uk\/website-security\">use Website Security powered by Sucuri to scan and fix your hacked WordPress site<\/a>. The Deluxe and Ultimate packages also help prevent future hacks.<\/p>\n<h3>Step 1: Identify the hack<\/h3>\n<h5>1.1 Scan your website<\/h5>\n<p>The first thing you need to do is to scan your website to find the hack.<\/p>\n<p>There are lots of tools you can use to scan sites remotely and find malicious payloads and malware locations.<\/p>\n<p><a href=\"https:\/\/wordpress.org\/plugins\/sucuri-scanner\/\" target=\"_blank\" rel=\"noopener noreferrer\">Sucuri\u2019s free WordPress plugin<\/a> is a great solution that helps to scan your site and find malicious payloads, malware locations, security issues, and blocklist status with major authorities.<\/p>\n<p>If the site is found to be infected, you\u2019ll get a warning message with further details, including payloads and blocklist warnings.<\/p>\n<p>If the remote scanner can\u2019 find a payload, don\u2019t stop there. If you have the plugin installed, you can manually review the iFrames\/Links\/Scripts tab of the Malware scan to look for suspicious activity.<\/p>\n<p>If you\u2019re running multiple client sites on the same server, make sure to scan all of them using SiteCheck or whichever security tool you prefer.<\/p>\n<h5>1.2 Review core file integrity<\/h5>\n<p>Next, you\u2019ll need to check and make sure that no core WordPress files have been modified in the wp-admin, wp-includes, and root folders.<\/p>\n<p>A quick way to do this is to use the <code>diff<\/code> command in terminal. Another option is to manually check your files via SFTP. If you choose this option to check for malware, we\u2019d recommend using FTPS\/SFTP\/SSH rather than unencrypted FTP client.<\/p>\n<p>If you discover that no core files have been modified, then you can move on to the next step.<\/p>\n<h5>1.3 Review new or recently modified files<\/h5>\n<p>Another way to find hacked files is to take a closer look at the new or recently modified files.<\/p>\n<p>Here\u2019s how you can manually check recently modified files:<\/p>\n<ol>\n<li>Log into your server using an FTP client or SSH terminal.<\/li>\n<li>If you\u2019re using SFTP, review the last modified date column for all files on the server.<\/li>\n<li>If you\u2019re using SSH, you can get access to all the files that have been modified in the last 15 days by using this command:<br \/>\n<code>$ find .\/ -type f -mtime -15<\/code><\/li>\n<\/ol>\n<p>Make a note of any files that have been recently modified as you\u2019ll need them later in the process.<\/p>\n<p>If you\u2019re using terminal commands on Linux, here\u2019s how you can check for recently modified files:<\/p>\n<ol>\n<li>Type in your terminal:<br \/>\n<code>$ find \/etc -type f -printf '%TY-%Tm-%Td %TT %p\\n' | sort -r .<\/code><\/li>\n<li>To see directory files, type in your terminal:<br \/>\n<code>$ find \/etc -printf '%TY-%Tm-%Td %TT %p\\n' | sort -r .<\/code><\/li>\n<li>Unfamiliar changes in the last 7-30 days may be suspicious so make sure to review them.<\/li>\n<\/ol>\n<h5>1.4 Check diagnostic pages<\/h5>\n<p>When a WordPress website gets hacked, it usually doesn\u2019t take long for Google to blocklist it to prevent it from showing up in its search results and protect its users.<\/p>\n<p>So the next step is to check and see if Google has issued any security warnings for your website.<\/p>\n<p>Use <a href=\"https:\/\/transparencyreport.google.com\/safe-browsing\/search\" target=\"_blank\" rel=\"noopener noreferrer\">Google\u2019s Safe Browsing status tool<\/a> to check the security status of your website.<\/p>\n<p>All you need to do is to enter your site URL, click enter and Google will return further information about your site\u2019s status, including information about malicious redirects, spam and downloads.<\/p>\n<p>While this is a quick solution, a better one would be to <a href=\"https:\/\/search.google.com\/search-console\/welcome\" target=\"_blank\" rel=\"noopener noreferrer\">sign up for Google Search Console<\/a>. It\u2019s free and you\u2019ll get access to lots of useful reports and information about your site\u2019s security and performance.<\/p>\n<h3>Step 2: Remove the hack<\/h3>\n<p>Now that you\u2019ve managed to find the hacked files, it\u2019s time to remove them and restore your WordPress website to a clean state.<\/p>\n<p>Here\u2019s how:<\/p>\n<h5>2.1 Remove or clean hacked files<\/h5>\n<p>If the malware is in your WordPress core files or plugins, you can fix it manually. However, make sure you don\u2019t overwrite your wp-config.php\u00a0file or\u00a0wp-content\u00a0folder.<\/p>\n<p>If you have access to a recent backup that\u2019s not infected, that can be very helpful as you can simply replace the infected files with the ones from your backup.<\/p>\n<p>If you don\u2019t have a recent backup, you\u2019ll need to replace the hacked files with fresh copies.<\/p>\n<p>Now, to manually remove a malware infection from your WordPress site files, follow these steps:<\/p>\n<ol>\n<li>Log into your server via SFTP or SSH.<\/li>\n<li>Before you make any changes, create a backup of the website.<\/li>\n<li>Make a list with recently changed files.<\/li>\n<li>Double-check the date they were modified with the user who changed them.<\/li>\n<li>Restore suspicious files with copies from the official WordPress repository.<\/li>\n<li>Open any custom files (not in the official repository) with a text editor.<\/li>\n<li>Remove any suspicious code from those custom files.<\/li>\n<li>Test to make sure that your website is fully functional after you\u2019ve made the changes.<\/li>\n<\/ol>\n<h5>2.2 Clean hacked database tables<\/h5>\n<p>To remove a malware infection from your site database, you\u2019ll need to use your database admin panel to connect to the database. There are lots of tools you can use for this, including Search-Replace-DB and Adminer.<\/p>\n<p>Follow these steps to manually remove a malware infection from your database tables:<\/p>\n<ol>\n<li>Log into your database admin panel.<\/li>\n<li>Before you make any changes, make sure to create a backup of the database.<\/li>\n<li>Search for suspicious content (i.e., spammy keywords, links).<\/li>\n<li>Open the table that contains suspicious content.<\/li>\n<li>Manually remove any suspicious content.<\/li>\n<li>Test to check that your website works properly after you\u2019ve made the changes.<\/li>\n<li>Remove any database access tools you may have uploaded.<\/li>\n<\/ol>\n<h5>2.3 Secure all user accounts<\/h5>\n<p>Take a look at your WordPress users list and immediately remove any suspicious or unfamiliar users. As a precaution, we suggest having only one admin user and limiting the rights or privileges of other users such as editors, authors, contributors, users.<\/p>\n<p>Now, before you start removing any suspicious users, make sure to backup your website and database. Then simply go to your WordPress users list and delete any users you deem suspicious.<\/p>\n<p>At the same time, if you believe one or more of your legitimate user accounts have been hacked, we recommend resetting their passwords. You can easily do that with the Sucuri plugin.<\/p>\n<h5>2.4 Remove hidden backdoors<\/h5>\n<p>Hackers are smart. They almost always leave a way to get back into your website, just in case they get caught. This means you\u2019ll need to find those backdoors and prevent them from coming back and hacking your WordPress site yet again.<\/p>\n<p>Usually, backdoors are embedded in files that have similar names to WordPress core files. The difference is that they\u2019re usually located in wrong directories. Hackers can also inject backdoors into files like wp-config.php or directories like \/uploads, \/plugins and \/themes.<\/p>\n<p>Look for the following PHP functions to find backdoors:<\/p>\n<ul>\n<li>base64<\/li>\n<li>str_rot13<\/li>\n<li>gzuncompress<\/li>\n<li>eval<\/li>\n<li>exec<\/li>\n<li>system<\/li>\n<li>assert<\/li>\n<li>stripslashes<\/li>\n<li>preg_replace (with \/e\/)<\/li>\n<li>move_uploaded_file<\/li>\n<\/ul>\n<p>Since it\u2019s possible that these functions are used legitimately by plugins, make sure to backup the site and to test that its works properly after removing any of the functions.<\/p>\n<p>Take your time with this step because if you don\u2019t close all backdoors, your site can be reinfected very quickly.<\/p>\n<p>As part of this, look into disabling xmlrpc.php as well. <a href=\"https:\/\/premium.wpmudev.org\/blog\/xml-rpc-wordpress\/\" target=\"_blank\" rel=\"noopener noreferrer\">Read more about it on WPMU DEV<\/a>.<\/p>\n<h5>2.5 Remove malware warnings<\/h5>\n<p>If your WordPress site was blocklisted by Google, you\u2019ll need to request a review after you\u2019ve managed to remove all malware and clean up your site.<\/p>\n<p>Here\u2019s how you can do that:<\/p>\n<p>To remove the blocklist warning, you\u2019ll need to let Google know that you have completely cleared the infection. For that, you\u2019ll need to create a Google Search Console account, if you\u2019re not using one already. Then follow the steps in this guide to <a href=\"https:\/\/developers.google.com\/web\/fundamentals\/security\/hacked\/request_review\" target=\"_blank\" rel=\"noopener noreferrer\">request a review from Google<\/a>.<\/p>\n<p>You should also fill in review requests for other search engines and web spam authorities like Bing, Yandex and McAfee.<\/p>\n<h3>Step 3: Post-hack<\/h3>\n<p>Fixing a hacked WordPress website takes time. You don\u2019t want to go through this process every couple of months, do you?<\/p>\n<p>So the next step is to enhance the security of your website to make sure this never happens again.<\/p>\n<h5>3.1 Update and reset configuration settings<\/h5>\n<p>You know what\u2019s one of the leading causes of infections? Out-of-date software.<\/p>\n<p>So, if there\u2019s one thing you need to take care of immediately, that\u2019s to update everything from CMS version, plugins, themes, and any other extensions you\u2019re using on your site.<\/p>\n<p>To manually apply updates in WordPress, follow these steps:<\/p>\n<ol>\n<li>Log into your server via SFTP or SSH.<\/li>\n<li>Always backup your website and database before making an update.<\/li>\n<li>Manually remove the wp-admin and wp-includes directories.<\/li>\n<li>Replace wp-admin and wp-includes using copies from the official WordPress repository.<\/li>\n<li>Manually remove and replace plugins and themes with copies from official sources.<\/li>\n<li>Log into WordPress as an admin and click\u00a0Dashboard &gt; Updates.<\/li>\n<li>Apply any missing updates.<\/li>\n<li>Go to your website to make sure it works properly.<\/li>\n<\/ol>\n<p>Also, make it a habit to change passwords for all access points, including for WordPress user accounts, FTP\/SFTP, SSH, cPanel, and your database. Keep the number of admins to a minimum and limit users\u2019 access to only the features they require to do the job they need.<\/p>\n<p>As an extra security step, you can force active users to log off by resetting WordPress secret keys. This is important because if a hacker has a session cookie, they can retain access to a website even after a password is reset.<\/p>\n<p>To generate new secret keys, follow these steps:<\/p>\n<ol>\n<li>Open the WordPress wp-config.php file.<\/li>\n<li>Add a value of 60+ unique characters for each key and salt.<\/li>\n<li>You can use a\u00a0<a href=\"https:\/\/api.wordpress.org\/secret-key\/1.1\/salt\/\" target=\"_blank\" rel=\"noopener noreferrer\">secret key generator<\/a>.<\/li>\n<li>Save the wp-config.php file.<\/li>\n<\/ol>\n<p>To make sure all your plugins are fully functional and malware-free, we\u2019d suggest reinstalling them. At the same time, if you have plugins that you no longer use or are outdated or deactivated, we highly recommend you to remove them from your web server.<\/p>\n<p>If you\u2019re using Sucuri\u2019s WordPress plugin, you can do that in a few simple steps:<\/p>\n<ol>\n<li>Log into WordPress as an admin and go to Sucuri Security &gt; Post-Hack.<\/li>\n<li>Go to the Reset Plugins tab.<\/li>\n<li>Select the plugins you want to reset (it is recommended to select them all).<\/li>\n<li>Click Process selected items.<\/li>\n<\/ol>\n<h5>3.2 Enhance WordPress security<\/h5>\n<p>To prevent any further attacks in the future, you\u2019ll need to take some steps to reduce the entry points for attackers.<\/p>\n<p>Here\u2019s how you can harden WordPress using the Sucuri plugin:<\/p>\n<ol>\n<li>Log into WordPress as an admin and go to\u00a0Sucuri Security &gt; Hardening.<\/li>\n<li>Review the options to understand what they do.<\/li>\n<li>Click the\u00a0Harden button to apply recommendations.<\/li>\n<\/ol>\n<h5>3.3 Create backups<\/h5>\n<p>Backups are critical to recovering your site after an attack. So make it a habit to backup your WordPress site to ensure you always have a safe copy in case of a malware infection.<\/p>\n<p>Here are some tips to keep in mind:<\/p>\n<ul>\n<li>Never store backups on your server. Instead, always store them in an off-site location.<\/li>\n<li>Go with a backup solution that automatically backs up your site at a frequency that suits your needs.<\/li>\n<li>Your backup strategy should include redundancy, meaning backups of your backups.<\/li>\n<li>Test the restore process to make sure your website works properly.<\/li>\n<\/ul>\n<h5>3.4 Scan your computer<\/h5>\n<p>You probably already know that a hacker only needs to infect one of your user\u2019s computers to get access to your WordPress dashboard.<\/p>\n<p>So ask your users to run a scan on their operating systems using a reputable antivirus program like Malwarebytes,\u00a0Avast, Avira (free) or BitDefender, Kaspersky, F-Secure (paid).<\/p>\n<h5>3.5 Use a website firewall<\/h5>\n<p>Consider using a website firewall to protect your website. Why? Because it can:<\/p>\n<ul>\n<li>Help to prevent a future hack since it can detect and stop known hacking tactics.<\/li>\n<li>Patch holes in your website software even if you haven\u2019t updated certain plugins or themes.<\/li>\n<li>Prevent anyone from accessing your wp-admin or wp-login page.<\/li>\n<li>Block all types of DDoS attacks<\/li>\n<li>Offer to cache to speed up your website. And, as you know, site speed is an important factor not only for visitors but also for search engines.<\/li>\n<\/ul>\n<h3>In conclusion<\/h3>\n<p>No matter how secure your site or your clients\u2019 websites are, there is always a chance that they may get hacked. Fortunately, you now have the information you need to not only spot potential security flaws and clean up your WordPress website but also to prevent a future breach.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A hacked WordPress website is a nightmare, but it&#8217;s a nightmare that can be solved. Use this guide to fix a hacked WordPress site, or pass it on to your clients to help them stay safe.<\/p>\n","protected":false},"author":2,"featured_media":20211,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27,28,29],"tags":[],"class_list":{"0":"post-20206","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-wordpress","8":"category-your-business","9":"category-your-website"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to fix a hacked WordPress website - Heart Internet<\/title>\n<meta name=\"description\" content=\"Learn how to fix a hacked WordPress site with this easy to follow guide that will also help keep your website safe in the future.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to fix a hacked WordPress website - Heart Internet\" \/>\n<meta property=\"og:description\" content=\"Learn how to fix a hacked WordPress site with this easy to follow guide that will also help keep your website safe in the future.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/\" \/>\n<meta property=\"og:site_name\" content=\"Heart Internet\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/heartinternet\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-06-12T12:30:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.heartinternet.uk\/blog\/wp-content\/uploads\/2019\/01\/red-keyboard.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1100\" \/>\n\t<meta property=\"og:image:height\" content=\"619\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Eliot Chambers-Ostler\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@heartinternet\" \/>\n<meta name=\"twitter:site\" content=\"@heartinternet\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Eliot Chambers-Ostler\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/\"},\"author\":{\"name\":\"Eliot Chambers-Ostler\",\"@id\":\"https:\/\/heartblog.victory.digital\/#\/schema\/person\/58ed7f27cc0f3ab6e69135742a5eee28\"},\"headline\":\"How to fix a hacked WordPress website\",\"datePublished\":\"2019-06-12T12:30:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/\"},\"wordCount\":2233,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/heartblog.victory.digital\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.heartinternet.uk\/blog\/wp-content\/uploads\/2019\/01\/red-keyboard.jpg\",\"articleSection\":[\"WordPress\",\"Your Business\",\"Your Website\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/\",\"url\":\"https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/\",\"name\":\"How to fix a hacked WordPress website - Heart Internet\",\"isPartOf\":{\"@id\":\"https:\/\/heartblog.victory.digital\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.heartinternet.uk\/blog\/wp-content\/uploads\/2019\/01\/red-keyboard.jpg\",\"datePublished\":\"2019-06-12T12:30:04+00:00\",\"description\":\"Learn how to fix a hacked WordPress site with this easy to follow guide that will also help keep your website safe in the future.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/#primaryimage\",\"url\":\"https:\/\/www.heartinternet.uk\/blog\/wp-content\/uploads\/2019\/01\/red-keyboard.jpg\",\"contentUrl\":\"https:\/\/www.heartinternet.uk\/blog\/wp-content\/uploads\/2019\/01\/red-keyboard.jpg\",\"width\":1100,\"height\":619},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.heartinternet.uk\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to fix a hacked WordPress website\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/heartblog.victory.digital\/#website\",\"url\":\"https:\/\/heartblog.victory.digital\/\",\"name\":\"Heart Internet\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/heartblog.victory.digital\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/heartblog.victory.digital\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/heartblog.victory.digital\/#organization\",\"name\":\"Heart Internet\",\"url\":\"https:\/\/heartblog.victory.digital\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/heartblog.victory.digital\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.heartinternet.uk\/blog\/wp-content\/uploads\/2025\/02\/HeartInternet_Logo_Colour.webp\",\"contentUrl\":\"https:\/\/www.heartinternet.uk\/blog\/wp-content\/uploads\/2025\/02\/HeartInternet_Logo_Colour.webp\",\"width\":992,\"height\":252,\"caption\":\"Heart Internet\"},\"image\":{\"@id\":\"https:\/\/heartblog.victory.digital\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/heartinternet\/\",\"https:\/\/x.com\/heartinternet\",\"https:\/\/www.linkedin.com\/company\/heart-internet-ltd\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/heartblog.victory.digital\/#\/schema\/person\/58ed7f27cc0f3ab6e69135742a5eee28\",\"name\":\"Eliot Chambers-Ostler\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/heartblog.victory.digital\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.heartinternet.uk\/blog\/wp-content\/uploads\/2025\/08\/cropped-Eliot-96x96.jpg\",\"contentUrl\":\"https:\/\/www.heartinternet.uk\/blog\/wp-content\/uploads\/2025\/08\/cropped-Eliot-96x96.jpg\",\"caption\":\"Eliot Chambers-Ostler\"},\"url\":\"https:\/\/www.heartinternet.uk\/blog\/author\/eliot-chambers-ostler\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to fix a hacked WordPress website - Heart Internet","description":"Learn how to fix a hacked WordPress site with this easy to follow guide that will also help keep your website safe in the future.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/","og_locale":"en_GB","og_type":"article","og_title":"How to fix a hacked WordPress website - Heart Internet","og_description":"Learn how to fix a hacked WordPress site with this easy to follow guide that will also help keep your website safe in the future.","og_url":"https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/","og_site_name":"Heart Internet","article_publisher":"https:\/\/www.facebook.com\/heartinternet\/","article_published_time":"2019-06-12T12:30:04+00:00","og_image":[{"width":1100,"height":619,"url":"https:\/\/www.heartinternet.uk\/blog\/wp-content\/uploads\/2019\/01\/red-keyboard.jpg","type":"image\/jpeg"}],"author":"Eliot Chambers-Ostler","twitter_card":"summary_large_image","twitter_creator":"@heartinternet","twitter_site":"@heartinternet","twitter_misc":{"Written by":"Eliot Chambers-Ostler","Estimated reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/#article","isPartOf":{"@id":"https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/"},"author":{"name":"Eliot Chambers-Ostler","@id":"https:\/\/heartblog.victory.digital\/#\/schema\/person\/58ed7f27cc0f3ab6e69135742a5eee28"},"headline":"How to fix a hacked WordPress website","datePublished":"2019-06-12T12:30:04+00:00","mainEntityOfPage":{"@id":"https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/"},"wordCount":2233,"commentCount":0,"publisher":{"@id":"https:\/\/heartblog.victory.digital\/#organization"},"image":{"@id":"https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/#primaryimage"},"thumbnailUrl":"https:\/\/www.heartinternet.uk\/blog\/wp-content\/uploads\/2019\/01\/red-keyboard.jpg","articleSection":["WordPress","Your Business","Your Website"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/","url":"https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/","name":"How to fix a hacked WordPress website - Heart Internet","isPartOf":{"@id":"https:\/\/heartblog.victory.digital\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/#primaryimage"},"image":{"@id":"https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/#primaryimage"},"thumbnailUrl":"https:\/\/www.heartinternet.uk\/blog\/wp-content\/uploads\/2019\/01\/red-keyboard.jpg","datePublished":"2019-06-12T12:30:04+00:00","description":"Learn how to fix a hacked WordPress site with this easy to follow guide that will also help keep your website safe in the future.","breadcrumb":{"@id":"https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/#primaryimage","url":"https:\/\/www.heartinternet.uk\/blog\/wp-content\/uploads\/2019\/01\/red-keyboard.jpg","contentUrl":"https:\/\/www.heartinternet.uk\/blog\/wp-content\/uploads\/2019\/01\/red-keyboard.jpg","width":1100,"height":619},{"@type":"BreadcrumbList","@id":"https:\/\/www.heartinternet.uk\/blog\/how-to-fix-a-hacked-wordpress-website\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.heartinternet.uk\/blog\/"},{"@type":"ListItem","position":2,"name":"How to fix a hacked WordPress website"}]},{"@type":"WebSite","@id":"https:\/\/heartblog.victory.digital\/#website","url":"https:\/\/heartblog.victory.digital\/","name":"Heart Internet","description":"","publisher":{"@id":"https:\/\/heartblog.victory.digital\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/heartblog.victory.digital\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/heartblog.victory.digital\/#organization","name":"Heart Internet","url":"https:\/\/heartblog.victory.digital\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/heartblog.victory.digital\/#\/schema\/logo\/image\/","url":"https:\/\/www.heartinternet.uk\/blog\/wp-content\/uploads\/2025\/02\/HeartInternet_Logo_Colour.webp","contentUrl":"https:\/\/www.heartinternet.uk\/blog\/wp-content\/uploads\/2025\/02\/HeartInternet_Logo_Colour.webp","width":992,"height":252,"caption":"Heart Internet"},"image":{"@id":"https:\/\/heartblog.victory.digital\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/heartinternet\/","https:\/\/x.com\/heartinternet","https:\/\/www.linkedin.com\/company\/heart-internet-ltd"]},{"@type":"Person","@id":"https:\/\/heartblog.victory.digital\/#\/schema\/person\/58ed7f27cc0f3ab6e69135742a5eee28","name":"Eliot Chambers-Ostler","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/heartblog.victory.digital\/#\/schema\/person\/image\/","url":"https:\/\/www.heartinternet.uk\/blog\/wp-content\/uploads\/2025\/08\/cropped-Eliot-96x96.jpg","contentUrl":"https:\/\/www.heartinternet.uk\/blog\/wp-content\/uploads\/2025\/08\/cropped-Eliot-96x96.jpg","caption":"Eliot Chambers-Ostler"},"url":"https:\/\/www.heartinternet.uk\/blog\/author\/eliot-chambers-ostler\/"}]}},"_links":{"self":[{"href":"https:\/\/www.heartinternet.uk\/blog\/wp-json\/wp\/v2\/posts\/20206","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.heartinternet.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.heartinternet.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.heartinternet.uk\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.heartinternet.uk\/blog\/wp-json\/wp\/v2\/comments?post=20206"}],"version-history":[{"count":0,"href":"https:\/\/www.heartinternet.uk\/blog\/wp-json\/wp\/v2\/posts\/20206\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.heartinternet.uk\/blog\/wp-json\/wp\/v2\/media\/20211"}],"wp:attachment":[{"href":"https:\/\/www.heartinternet.uk\/blog\/wp-json\/wp\/v2\/media?parent=20206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.heartinternet.uk\/blog\/wp-json\/wp\/v2\/categories?post=20206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.heartinternet.uk\/blog\/wp-json\/wp\/v2\/tags?post=20206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}