No sooner is my website fully functional that it gets hacked. If you do a Google search with the link below, the results show spam keywords in the pages throughout such as “casino”, “blackjack”, “slot”, “deposit”, etc. But if I look through the pages, I don’t see any of the spam.
Here is the Google search result:
https://www.google.ca/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=site%3Arichardrosenman.com%20richard%20rosenman
I am not very advanced with WordPress or PHP and I have tried searching. Can anyone help me figure out where it was hacked and how I can clean and protect it?
Since ‘social.png’ is included and there are spam keywords you probably are experiencing a CryptoPHP hack. There’s much to find about it (in combination with WordPress) and, fortunately, how to clear it.
Same happend with one of my client, he has only 15 posts in backend but google shows some wierd keywords and post which is crawed. To check this kind of posts/pages you have to look in the database.
wp_posts
table holds all thecustom post types, pages
etc, and display only the post that has publish status inpost_status
section.To retrive all the published pages or post use the following query.
Now you know how to filter data, every record from this filtered data has a column
post_author
that holds the ID of the user that published that post/page.Go to the
wp_users
table and check youruser_login
name and get the ID of your administrator account. And again filter the run a query inwp_posts
table to filter the anonymous users data.And final step is to delete that.
Important: Before Apply this action make sure to take backup first, so just in case you can retrive that data later.
Hope this help you.