Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Is this code malicious?


  • Please log in to reply

#16
Michael

Michael

    Retired Staff

  • Retired Staff
  • 1,869 posts
Well I try to explain it then :whistling:

The first few lines just sets some variables.

if(plugin) I think is testing if the variable does not equal null, because that would be the case if the objects it is string to access don't exist.

It then gets a number or else write some bad html. document.write() gets the document object and writes something to it.

This it does the if thing again, why not just do it once? and write some more html.

I suppose it is trying to write some ads.
  • 0

Advertisements


#17
CelestialTeardrop

CelestialTeardrop

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 262 posts
Oh, I trust you when you say it's pointless code. I didn't mean to try and get you to explain it, just justifying why I'm asking silly questions (because I'm a bit embarrassed to have asked them... :whistling: ) :blink:

Yeah, it was an ad (although my Norton must have blocked the majority of it from appearing on screen) that takes you to a sponsor site before redirecting to the site one originally wanted to visit.
  • 0

#18
Michael

Michael

    Retired Staff

  • Retired Staff
  • 1,869 posts
If you use Firefox you can use http://adblockplus.org/ to prevent all ads you don't want to see from showing.
  • 0

#19
CelestialTeardrop

CelestialTeardrop

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 262 posts
Ok, thanks. I currently use AdBlock and have a number of filters that I added over time, but I'll check out Adblock plus.
  • 0

#20
Michael

Michael

    Retired Staff

  • Retired Staff
  • 1,869 posts
Oh, then I not sure you need adblock plus. I don't think there is too much difference.

DON'T INSTALL BOTH AT THE SAME TIME!
  • 0

#21
CelestialTeardrop

CelestialTeardrop

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 262 posts
Yeah, together they give less protection than each does individually, just like anti-virus programs.
  • 0

#22
Michael

Michael

    Retired Staff

  • Retired Staff
  • 1,869 posts
No if you have both install, you might need to find out how to manually uninstall an extension. They don't like each other.
  • 0

#23
CelestialTeardrop

CelestialTeardrop

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 262 posts
I only have adblock installed at the moment. I will uninstall it (and delete it from the extensions folder in my firefox profile) before getting adblock plus (if I decide to switch).

Thanks :whistling:
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP