03.03
I have two four requirements to use this code.
- so if your reading this, and you haven’t signed up on the mailing list – do so, now.
- Go to another super affiliates site and ask them where their code samples are and link back to me in the comment section.
- Join us on #deStonesucks on irc. — see details here.
- Add the RSS to your reader.
Mailing list signup
You’re going to need a few things for this to work. One of them is magpie, then you will need a dictionary file as well (right click, save as). For those truly lazy, here is a complete download of this entire tutorial.
Step 1:
Create a directory called backlinker on your server. Dump the contents of dictionary.txt, the magpie install, and backlinker.php into it.
Step 2:
Modify the code so that $promoteurl is your website you are wanting to blast out. $throttle is just seconds between hits on del.icio.us.
Step 3:
Run the backlinker from the Command Line. If you have other dictionary files, you can use them instead of ‘dictionary’ (must be a .txt file)
php backlinker.php dictionary
Step 4:
Watch as the hits start rolling in from referrer logs. Modifications I have on my personal version – I store each url in a database so I can re – hit it later, I have proxy support built in, and I am using the multi-curl class our buddy win– created. If I gave you that, I wouldnt be helping you, now would I? Questions? Join the irc channel and discuss.
Backlinker.php – View Source
// set timeout to 0 so it doesnt time out.
set_time_limit(0);
$promoteurl = "http://www.somewebsite.com/subdir/";
$throttle = 10;
require_once('rss_fetch.inc');
// open up our dictionary.txt file, dump it to memory for use
$myFile = $argv[1] . ".txt";
$fh = fopen($myFile, 'r');
$theData = fread($fh, filesize($myFile));
fclose($fh);
unset($fh);
echo("\n\n deStone's del.icio.us backlinker \n***************************************\n");
echo("Promoting: " . $promoteurl . "\n");
echo("*** LOADING " . $argv[1] . ".txt\n");
// get an array of each keyword from the dictionary file.
$taggroup = explode("\n", $theData);
unset($myFile);
unset($theData);
foreach ($taggroup as $tag)
{
$tag = trim($tag);
$url = "http://del.icio.us/rss/tag/" . $tag . "/";
$rss = fetch_rss($url);
//throttle for del.icio.us
sleep($throttle);
foreach($rss->items as $item => $x)
{
$url = $x["link"];
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_REFERER, $promoteurl);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0');
$result = curl_exec($ch);
curl_close ($ch);
echo("Hit " . $url . "\n");
unset($result);
unset($ch);
unset($tag);
}
}
?>
No Comment.
Add Your Comment