WebEvader Proxy Forums - The Proxy Webmaster Forum
Backlink Checker - Printable Version

+- WebEvader Proxy Forums - The Proxy Webmaster Forum (http://forums.webevader.org)
+-- Forum: Design & Development Section (/Forum-Design-Development-Section)
+--- Forum: Programming/Coding Area (/Forum-Programming-Coding-Area)
+--- Thread: Backlink Checker (/Thread-Backlink-Checker)


Backlink Checker - FrozenNova - 03-25-2009 10:22 PM

Ok so heres my simple backlink checker just modify the code where $result = not found/found if you require it to do anything different on execution

Code:
<?php

$remoteurl = "http://6ct.info";

$backlink = "tech-faq.com";

function checkLink($remoteurl, $backlink) {

$pattern = "^.*$backlink.*";

$ch = curl_init();

$timeout = '5';

curl_setopt($ch, CURLOPT_URL, $remoteurl);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);

$output = curl_exec($ch);

Curl_close($ch);

$output = htmlentities($output);

If (ereg($pattern,$output)) {
$result = 'BACKLINK FOUND';
}
Else
{
$result = 'NO BACKLINK FOUND';
}
return $result;
}
$check = checkLink($remoteurl,$backlink);

Echo $check;
?>

Regards


RE: Backlink Checker - WebEvader - 03-25-2009 10:30 PM

Thank you very much ) its great to see members sharing their work with the forum ;)

Thanks FrozenNova greatly appreciated !


RE: Backlink Checker - FrozenNova - 03-26-2009 12:55 AM

Thought I'd do my bit in improving webEvader now Im a mod. Just let me know if you need any more code snippets for the improvements


RE: Backlink Checker - ruben - 09-06-2009 12:01 PM

(03-26-2009 12:55 AM)FrozenNova Wrote:  Thought I'd do my bit in improving webEvader now Im a mod. Just let me know if you need any more code snippets for the improvements

Very nice I'm coding a proxy list script and this is so helpful


RE: Backlink Checker - FrozenNova - 09-08-2009 12:21 AM

No problems, This was used as part of my proxy list script before I left the business.

However I shall be back shortly