Black Hat Tactics – Referrer Spoofing and Pay For Traffic Scams

By Matt Dunlap on July 9th, 2009 2 comments
Don't forget to tweet this post for a chance to win a $100 BestBuy Gift Card
Time Left: | Details and Rules

blackhatIf you run a website then you probably use one or more traffic analysis tools. Have you ever look at your logs and found a referring website that made no sense? You follow the referrer link back and find a page full of ads with no link pointing to your site at all? Well, you’ve been spoofed and while it doesn’t cause any harm to your website, it is annoying and causes false records in your traffic monitoring tools.

Why does this happen? Black hat marketers do this for a couple reasons. To generate traffic to either their website or a partner website, or the more creative black hats will use it to spoof directly to the advertisers on their website.

Traffic generation
You looked in your traffic logs, saw the mysterious link and followed it. Image that times 1 million… Even if only 1% of the webmasters check the referrer link, the spoofer will get tons of traffic. Spoofing a referrer is really easy with PHP using curl. Below is all the code you need to spoof 1 website. To extend, all you need to do is get a list of websites to hit. Loop through the list. Or, better yet, make a very simple code spider, or download an open source one, put the below code in it, and let it spider the internet all night. When the spider finds a domain name, it hits it with the fake referrer.

$host = 'http://spoofvictim.php';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $host);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_AUTOREFERER, false);
curl_setopt($ch, CURLOPT_REFERER, "http://mattdunlap.org/cool_links.php");
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
curl_setopt($ch, CURLOPT_HEADER, 0);
$result = curl_exec($ch);
curl_close($ch);

CPM Scams
Another tactic is to generate clicks on CPC campaigns. You start a website and sell advertising on it based on CPC (cost per click) or CPM (cost per thousand impressions). For example you sell a banner on your website for $7 CPM, so for every 1,000 visitors that see that banner you get $7 from the advertiser. The website owner then turns the spoofer on and generates page views on the page where your banner is visible. You have to use proxies for this to be truly effective to also create different IP’s and they randomize the spoof referrers, but you get the point. In your records it looks like you banner had loaded thousands of time.

Buying Traffic for your Website
This is really not smart, especially when you buy something outrageous like 1 million visitors. You will see ads like this all over Ebay for around $10. There are many ways to do this, from viruses on computers to spoofing to pop-unders and the result is always the same. Your traffic reports will go up, but you will get no sales. Not only will you get no sales but your server will probably go down while they nail it with fake traffic. I wanted to see what this was all about so I bought one on Ebay. I started the campaign and minutes later my server is getting huge chunks of traffic. Every minute I’m getting 200 visitors and the site goes down and I shut it off about 5 minutes later… WOW, what happen. No matter how big a network you have, there is no way to send 200 visitors to a website through pop-unders or virus clicks. This had to be an automated script. Looking on Ebay now I would say 99% are like this, and, I bet there are scripts you can buy to do it, probably on Ebay too.

In summary, if you see a mystery referrer in your web stats, oh well? just move on. If you are a website owner looking to advertise on third party websites, make sure you get full disclosure for traffic including demographics, and not just traffic stats provided by the website owner. Basically don’t take his word for it. Check Alexa, compete, or if it is a large website comscore


My next post is going to be awesome... Subscribe to my feed so you don't miss it

Large RSS Feed Button


Previous Post Next Post

2 Responses to Black Hat Tactics – Referrer Spoofing and Pay For Traffic Scams

Nancy Hutchins
Comment added: 29 April, 2010 at 8:02 pm

Thank you. You just explained a traffic anomoly to me. Clearly what I experienced was a spam attack.

Matt Dunlap
Comment added: 29 April, 2010 at 8:10 pm

Glad to help… I get 10X more referrer spam now from this post, but if it helps someone, then I’m happy!

Post a Comment

Name:   
Email:   
Website:   
Comments:   
The Money Coach on Brian Timpone Responded to my Blockshopper.com Complaint Blog Post.
I respect that there is an open debate on this issue. The great thing about the internet is we have[...]
Thom Living Green on How to enable WordPress 3.0 to run multiple websites
I followed your instructions and it worked just like you said. I now have a secure wp 3.0 mu set up [...]
Brocha Weiss on Blog Math - Numbers don't lie when it comes to success.
Hi Matt, I agree when you said, if there's no traffic to your site there is no money. This is the[...]
RoC Skin Care Fan on Your most effective keywords are not in your blog post
Spot on advice about targeted keyword anchor text. Its amazing how many websites do not realise thi[...]
ACME Affiliates - Affiliate Networks on Take control of your blog advertising with OpenX Adserver
OpenX is a great solution for managing ads on any kind of site, not just a blog. The problem that mo[...]
Matt Dunlap on Jquery Anything Slider Plugin for WordPress Magazine Themes
That is so cool that you modified it and made it better... I'll fix my code, and make the changes W[...]
Powered By: Free Premium WordPress Theme | Copyright 2007 - 2010 mattdunlap.org Sitemap