How can I remove content injected in my wordpress website?

by
joseph102
Profile picture of joseph102
Posts: Threads: Thanks: Account age: less than a second
16 replies
i got message in webmaster "hacked:content injection" . I found content in view source of all pages but i don't know how to find in which file this code exist. Can you help me fix this issue?
#content #injected #remove #website #wordpress
  • Profile picture of the author ruther
    ruther
    Profile picture of ruther
    Posts: Threads: Thanks: Account age: less than a second
    There are Google blog to say that how to this occur & what to do while this happen. Id have a complete guide. So you refer it.
  • Profile picture of the author YogeshChhabra
    YogeshChhabra
    Profile picture of YogeshChhabra
    Posts: Threads: Thanks: Account age: less than a second
    Your site is hacked and the hacker has put some malicious content on your website.You have to remove that from backend and then for further security change your websites password for that account from which the hacker was uploading content.
  • Profile picture of the author Carloscalvin
    Carloscalvin
    Profile picture of Carloscalvin
    Posts: Threads: Thanks: Account age: less than a second
    Hiii Joseph.. i think your site content is hacked. please check your website admin panel/cpanel may be hacker added some script code (ajax script) if added just removed it and give time to crawling.
  • Profile picture of the author jibranseo
    jibranseo
    Profile picture of jibranseo
    Posts: Threads: Thanks: Account age: less than a second
    if you bought a wordpress theme so yes it is hacked by theme designer or developer
    because now you would be receiving emails for better from some companies.
    just change your layout into html and css
    for that you can buy from themeforest sitetemplates.
    .
    for the last 3 or 4 years i am using html css sitetemplate's theme for my own 4 domains and they are ranking on several keywords.
  • Profile picture of the author Capaly
    Capaly
    Profile picture of Capaly
    Posts: Threads: Thanks: Account age: less than a second
    You probably did not update your WordPress to the latest version 4.7.2. The update was issued on January 26th.

    WordPress has also acknowledged the issue and published a blog post earlier.
    Read the blog post here: Disclosure of Additional Security Fix in WordPress 4.7.2
  • Profile picture of the author MrJack Mcfreder
    MrJack Mcfreder
    Profile picture of MrJack Mcfreder
    Posts: Threads: Thanks: Account age: less than a second
    Hi,

    From my experience, most of the injections are done through plugins folder. Access your ftp and within 'wp-content' rename 'plugins' folder to 'plugins-old' and create a new empty folder: plugins

    Now access your webmaster tools and find the extract that contains the injected content. Then access your admin panel and go to plugins page you should see that all plugins are disabled. And now go to your website and check if you can see that injected code.

    If you can still see the injected content, then it's 100% your theme. so all you have to do is to switch to any twenty default themes and compare again. if the injection is gone, then all you have to do is to check your theme files especially: index.php/footer.php/header.php/home.php/single.php/page.php/functions.php

    GL,
  • Profile picture of the author yukon
    yukon
    Profile picture of yukon
    Posts: Threads: Thanks: Account age: less than a second
    Banned
    Relax, you're not hacked.

    You've added a Wordpress plugin or theme to your site that included malicious code.

    There's a difference between being hacked and self inflicted problems.

    Disable each plugin one at a time until the problem code is removed from the HTML source code on the live webpage. Work through each plugin one by one until you find the problem. Do the same for the theme, switch to the default wordpress theme and see If the problem code is still there or not.
  • Profile picture of the author DWaters
    DWaters
    Profile picture of DWaters
    Posts: Threads: Thanks: Account age: less than a second
    I use the plug in Wordpress Firewall and it appears to block the malicious attacks on a regular basis. I put it on all my sites.

    Also be sure to keep all themes and plugins up to date with the latest versions. Any themes or plugins that you are not using should be removed form your dashboard.
    Signature
    How I really Make Money With Amazon

    Want to get rich with top rated FREE Super Affiliate Training?
  • Profile picture of the author Chris Gylseth
    Chris Gylseth
    Profile picture of Chris Gylseth
    Posts: Threads: Thanks: Account age: less than a second
    The suggestions provided would be the first steps to take to see if it will clean things up for you. There is always a chance your site actually has been hacked. It happened to me once because the computer of one of the people with access to the site had been hacked while he was on a business travel. It was a big mess. I followed every guide out there to remedy the situation. The domain that had been hacked was on an account with several other domains, many of which had been affected through the implant of malware scripts.

    A couple of earlier hacking attempts had been easy to fix, but this one was particularly nasty. I spent hours looking through every file and folder, cleaning up code within otherwise correct files, and removing bad files.

    In the end I was not able to get it all as it required access to the root level of the server and because this was on a shared hosting account the hosting provider would not give me that level of access. If you're on a shared hosting account I would highly recommend that you at least get a dedicated VPN after you have cleaned up the mess.

    Since I was not able to clean everything up myself, the hosting provider suggested I used one of their partner services that deal with cleaning up sites. Both this service and several other services I checked out were quite expensive, so I was happy when I found a service called We Watch Your Website. I checked them out before buying their service and decided to try them out. Their service was fantastic, and they cleaned up everything quicker than most of the other services said it would take to even get started. I don't know how they managed to clean up what I had not access to do, but I do know they took care of the problem, closed all back-doors, and most importantly, I have had no problems since. If taking the steps others here have suggested does not help you, I would encourage you to try them out.

    No, I am not affiliated with them in any way, shape, or form. In fact, I asked if I could become an affiliate, but the owner replied that they wanted to be able to continue to offer a low pricing so he was not interested in having any affiliates. You might think this is crazy, but I respect his honesty and ethics, and his commitment to provide an affordable service. As an example, he once was in final stages of negotiating the sale of his business, but he caught that one of the staff members on the buyer side stated that they couldn't wait to get the deal and to rise the prices. The owner stopped the deal cold right there and then. The world needs more honest business people like this.
  • Profile picture of the author fratt55
    fratt55
    Profile picture of fratt55
    Posts: Threads: Thanks: Account age: less than a second
    hey there
    the way to fix your issue is
    a..it appears you are hacked but first see if you can still log into the back end of the website with user and password.. if you can then start by disconnecting each page temporarily one by one andsee if you can resolve the issue
    b....if you cannot log into the back end .. then you will have to get to your website service provider to have them access it for you or give you a backup of the site..
    c..if you have an exixting back up you could easily do a quick uninstall and re install.
    there are other ways to do it but these are the 3 easiest way
    good luck
    talk soon...sam f
  • Profile picture of the author Tech Saviours
    Tech Saviours
    Profile picture of Tech Saviours
    Posts: Threads: Thanks: Account age: less than a second
    Tips for finding SPAM links injected into the content

    I'm working on a client's site and I noticed that posts have a hidden <div> filled to SPAM links to dick pills, etc. Hoping to get lucky, I searched for some of the keywords in the database tables, but found no matches. I also searched the code in all the files, and also found no matches.

    I know that Wordpress hacks can be very tricky to remove, and they go to great lengths to make them hard to find. But perhaps there are some "usual suspects" that I could check, or maybe some tell-tale signs I could look for.

Trending Topics