PHP Code to check and verify Splog (Spam Blog)
Jon Moffet
Spam blog or splog is a nuisance, it is a blog which consists of content largely taken from other website without any modification. The primary motivation for creating splog is for getting a top searching placement and getting profit from Pay-Per-Click advertisement.
If not monitored closely, Spam blog can be harmful to content searching where it pollutes search engine with copycat content or articles which has no value at all.
Luckily there is a service which lets you identify spam blog, antisplog.net which contains database of well known spam blogs.
Antisplog provide a simple api which you can use to check whether the given website url is a splog or otherwise, this can be use to integrate AntiSplog functionality right into your own web application in order to weed out spam blog listing in your website.
Here's the sample code to check spam blog using AntiSplog api :
-
function isSplog($url)
-
{
-
-
$resp=new Snoopy();
-
$host = $matches[2];
-
$resp->fetch("http://antisplog.net/check/". $host);
-
-
if($resp) {
-
if ($resp->results == 1) {
-
return true;
-
}
-
}
-
return false;
-
}
The code will return 'true' if the url given is an splog, or 'false' otherwise. For maximum compatibility, the code require the use of Snoopy HTTP Client in order to retrieve the codes from AntiSplog server.
You can download the isSplog function library here : issplog.zip
Tags: php, splog, spam blog, anti splog, REST, snoopy, library
Posted in Uncategorized |








March 23rd, 2007 at 1:09 am