How to Fix the WordPress Title Spam Hack

How to Fix the WordPress Title Spam Hack thumbnail
The Pharma Hack inserts spam links into your WordPress blog.

The WordPress Title Spam Hack, also known as the Pharma Hack, is a malicious plugin that hacks your blog's "<title>" and other tags so that your search result entry in Google displays links to sites selling pharmacy products such as Levitra and Lexapro. As such products are strongly associated with spam and questionable websites, this might give your site a bad reputation as well as send visitors away from your blog. However, there is a way to remove the Pharma Hack. You need Administrator, FTP and database access to complete this process.

Instructions

    • 1

      Load up your FTP client and log into the FTP account associated with your WordPress site. Navigate to "/wp-content/plugins." Set your FTP client to view hidden files -- see your client's documentation for instructions on how to do this -- then enter the first plugin folder in this directory. The Pharma Hack files share the following format, and there are usually find two or three of them together:

      .pluginname.cache.php

      .pluginname.bak.php

      .pluginname.old.php

      class-pluginname.php

      db-pluginname.php

    • 2

      Delete any files with this structure in the plugin folder, then repeat for all your plugins. This effectively removes the Pharma Hack, and spam links will no longer appear on your search results. However, there is additional malicious code in your database which you must remove as well.

    • 3

      Load up phpMyAdmin and click on the database relevant to your WordPress site from the list on the left. Click "Export" and "Go," then choose a location to save the database to. This is so that you have a backup copy -- always backup your database before making changes to your MySQL database, as you can then restore the backup if you make a mistake.

    • 4

      Click "Structure," then the "wp_options" table, then the "Browse" button just to the right of it. Click "Search" and search the "option_name" field for the following malicious entries:

      wp_check_hash

      class_generic_support

      widget_generic_support

      fwp

      Delete all matches that appear in the search results by clicking the red "X" on the same row as the entry.

    • 5

      Perform a search for "rss_%" -- without quotations. This time, delete all results except the following legitimate entries; in other words, delete all matches apart from these:

      rss_language

      rss_use_excerpt

      rss_excerpt_length

      All the malicious code of the Pharma Hack is now removed from your site.

Related Searches:

References

  • Photo Credit Thinkstock/Comstock/Getty Images

Comments

Related Ads

Featured