Gibberish Code in WP Footer?

5 replies
Some WP themes I have installed start with this in the code: <? eval(gzinflate(base64_decode(

Followed by hundreds of seemingly unrelated numbers and letters.

Is that normal or I have been hacked somwhow?

I need to translate what is shown on footer of the site but I can't since the code doesn't make any sense.

Thanks
#code #footer #gibberish
  • Profile picture of the author Tom Brite
    It's normal!

    Its because its been encrypted.... normally it 'hides' the links you see in your footer in that text and if they are clever then they make some important parts encrypted too, so that if you remove that then the footer or whole site wont work.

    Tom Brite
    {{ DiscussionBoard.errors[1157522].message }}
  • Profile picture of the author SpamHat
    I find that stuff like this is not normally added by the theme designer - but by some guy who's download a bunch of themes, edited the footer with his link and then offeres them for download somewhere else.

    Here's an easy fix that I've use before:

    View the source of the page in your browser, scrool to the bottom and copy the code for the footer. Often just before it it's got something like "<!-- footer -->".

    Paste it over the encryption and save.

    Works most of the time for me.
    {{ DiscussionBoard.errors[1157539].message }}
  • Profile picture of the author Jay Rhome
    It worked.

    I did leave their link. After all they did the template and I don't mind giving credit where credit is due.

    I do feel the process is a tad pushy but as always, there is a way around it...

    Thanks!
    {{ DiscussionBoard.errors[1157717].message }}
  • Profile picture of the author frelo
    Check it carefully!

    A couple of weeks someone hacked one of my old wordpress sites, added a link like that to a "bad site". Did not notice it until the whole domain was showing up as an unsafe site in google. Googles webmaster tools had more info.
    {{ DiscussionBoard.errors[1158829].message }}
  • Profile picture of the author Mohsin Rasool
    Sometime this can be a malicious code... so be careful... there is a term known as Dangerous Themes.... i.e. themes with malicious code (often encrypted) inside the files...

    I suggest and highly recommend to stay away from the themes with any encrypted code in it, and use only if you really really trust the source and you get theme directly from them... again why risk...?!

    Mohsin
    {{ DiscussionBoard.errors[1161600].message }}

Trending Topics