Yesterday I noticed a ton of my friends on Facebook were “liking” :|:|:|:|:|:| Smoking Hot Bartenders :|:|:|:|:|. Noticing that even some friends who I would never think would like that (girls), I decided to click on it and take a look.
The “Smoking Hot Bartenders” site, of course, is some sort of spam site where the user is prompted to fill out some leadgen form (or offer) in order to access pictures of the “smoking hot bartenders”. Declining to do so, I closed the window and figured that was that.
I was quite surprised to check my feed today and notice that I had “liked” the same page on Facebook. How did this happen?
I decided to take a look at the site, http://cutebabesbartending.info/, and see how they were executing this very viral scheme.
The first thing you see when you land on the site, most likely from Facebook (and hence logged in), is a screen with some hot girls and a link to click through. This link is the key to the scheme.
Taking a look the source of the page we see:
Note we have here an absolutely positioned DIV with an IFRAME to the facebook like page. But where is the code that clicks the link? If they are triggering from the click why does this facebook like button fire? Check out the code below. Note that id xxx is the iframe itself, and aaaa is the facebook like button.
This is kind of ingenious: they are re-drawing the Facebook like button so it follows your mouse around the screen, and when you click on the link you click on both the like button and the link to the next page!
But why don’t you see the like button? It’s because the opacity of the parent element is set to 0 (ie completely transparent, thanks to commenter Colby Russell for correcting me). Let’s change this and see what happens:
Look at that Facebook like button there by my cursor!
This is fairly brilliant spam – you click off of Facebook and unsuspectingly click on the link to get to the page where you assume there might be spam but you can ignore it. However, unbeknownst to you, you’ve already “liked” the spammy page, and it’s now sitting in your feed waiting for the next sucker, er… friend, to click on it.