Results 11 to 20 of 24
-
9th Apr 2011, 03:34 PM #11OPBannedWebsite's:
WarezRelease.org ThatHosting.coso jomasaco and humour, wud i replace what i haave now?
__________________
Added after 20 minutes:
srry 2 be a nnewb humour but what n whhhere the functiiion goes???????
-
9th Apr 2011, 05:34 PM #12Retired NinJaWebsite's:
loledhard.comThis should finish ur work
PHP Code://jomasaco's code
$sitename = $_POST['sitename']; //need be in http
$sitename = parse_url(trim($sitename)); //remove spaces split the url
$sitename = $sitename['host']; //get host
//jomasaco's code
$ururl="";
$connect = mysql_connect ("localhost", "user", "pass") or die ('Connection Fail!');
mysql_select_db("xtremedd_wcddl", $connect) or die ('lol');
$x = mysql_query("select count(*) from wcddl_whitelist where sitename = ".trim($sitename));
if ($x==1)
{
die ("Already Whitelisted");
}
elseif ($x==0)
{
//curl_part to retrieve content from the said sitename & chk for link back
if(linkback($sitename,$ururl)==true)
{
$add = mysql_query("INSERT INTO wcddl_whitelist VALUES ('".$sitename."')");
echo "Whitelisted!"
}
else
{
die('No Link Back');
}
}
function linkback($link, $ururl)
{
$ch = curl_init(trim(" http:// ").$link.trim(" / "));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_USERAGENT, 'Opera/9.80 (Windows NT 5.1; U; en) Presto/2.7.62 Version/11.01');
$page = curl_exec($ch);
curl_close($ch);
if (strpos($page,ururl)===false)
return false;
else
return true
}
You don't hate Justin bieber.You hate the fact you ain't Justin Bieber!
-
9th Apr 2011, 05:47 PM #13OPBannedWebsite's:
WarezRelease.org ThatHosting.cohmm how/where shud i say my linjback is;
under $siteurl
$linkback 'http:// blah .net/'
-
9th Apr 2011, 05:54 PM #14Retired NinJaWebsite's:
loledhard.comif(linkback($sitename,$ururl)==true)
^ this line calls linkback function. Now this function retrieves source of the site & tries to find $ururl in the source. If ur url is found it return's true & adds the sitename to whitelist. Thats it.
Dont forget to set $ururl @ line 6th
You don't hate Justin bieber.You hate the fact you ain't Justin Bieber!
-
9th Apr 2011, 06:13 PM #15Member
-
9th Apr 2011, 06:22 PM #16OPBannedWebsite's:
WarezRelease.org ThatHosting.co+1 added rep m8,
Code://jomasaco's code $siteurl = $_POST['siteurl']; //need be in http $siteurl = parse_url(trim($siteurl)); //remove spaces split the url $siteurl= $siteurl['host']; //get host $ururl = xtremeddl.net //jomasaco's code $connect = mysql_connect ("localhost", "", "") or die ('Connection Fail!'); mysql_select_db("xtremedd_wcddl", $connect) or die ('lol'); $x = mysql_query("select count(*) from wcddl_whitelist where url = ".trim($sitename)""); if ($x==1) { die ("Already Whitelisted"); } elseif ($x==0) { //curl_part to retrieve content from the said sitename & chk for link back if(linkback($sitename,$ururl)==true) { $add = mysql_query("INSERT INTO wcddl_whitelist VALUES ('".$sitename."')"); echo "Whitelisted!" } else { die('No Link Back'); } } function linkback($link, $ururl) { $ch = curl_init($link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_USERAGENT, 'Opera/9.80 (Windows NT 5.1; U; en) Presto/2.7.62 Version/11.01'); $page = curl_exec($ch); curl_close($ch); if (strpos($page,ururl)===false) return false; else return true }
srry ima noob with php.
error:
-
9th Apr 2011, 06:45 PM #17
-
9th Apr 2011, 06:51 PM #18Retired NinJaWebsite's:
loledhard.comLets try this
Changed 5th line as jomasaco said thr would be extra www. in siteurl['host']
& changed 6th line to add quote & semicolon. Try this out.
PHP Code://jomasaco's code
$siteurl = $_POST['siteurl']; //need be in http
$siteurl = parse_url(trim($siteurl)); //remove spaces split the url
$siteurl= str_ireplace("www.","",$siteurl['host']); //get host
$ururl = "xtremeddl.net";
//jomasaco's code
$connect = mysql_connect ("localhost", "user", "pass") or die ('Connection Fail!');
mysql_select_db("xtremedd_wcddl", $connect) or die ('lol');
$x = mysql_query("select count(*) from wcddl_whitelist where url = ".trim($sitename)"");
if ($x==1)
{
die ("Already Whitelisted");
}
elseif ($x==0)
{
//curl_part to retrieve content from the said sitename & chk for link back
if(linkback($sitename,$ururl)==true)
{
$add = mysql_query("INSERT INTO wcddl_whitelist VALUES ('".$sitename."')");
echo "Whitelisted!"
}
else
{
die('No Link Back');
}
}
function linkback($link, $ururl)
{
$ch = curl_init($link);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_USERAGENT, 'Opera/9.80 (Windows NT 5.1; U; en) Presto/2.7.62 Version/11.01');
$page = curl_exec($ch);
curl_close($ch);
if (strpos($page,ururl)===false)
return false;
else
return true
}
You don't hate Justin bieber.You hate the fact you ain't Justin Bieber!
-
10th Apr 2011, 03:47 PM #19Member
are another error
if (strpos($page,ururl)===false)
if (stripos($page,$ururl)===false) //they have the url in capital letters
and back to the idea i did before
$ipAddress = gethostbyname($siteurl);
if($ipAddress !== $siteurl) //validate if real the site exists
else{"ERROR: Invalid URL"}
in fact the curl will do this if isn't an real domain but are an little slow, if the domain exist return the ip else return the domain so if are identical shold fail.
KWWHuncdtion.com
KWWHuncdtion.com
ERROR: Invalid URL KWWHuncdtion.com
besthostingforums.com
212.7.200.164
using gethostbyname 0.00090312957763672 seconds to check the besthostingforums.comPHP Code:<?php
function microtime_float()
{
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);
}
$add = array("http://www.KWWHuncdtion.com/showthread.php?t=76884&page=2",
"http://www.besthostingforums.com/showthread.php?t=76884&page=2");
foreach($add as $query){
$time_start = microtime_float();
$query = parse_url(trim($query)); //remove spaces split the url
$query = $query['host']; //get host
$query = str_replace("www.","",$query); //remove the www
$ipAddress = gethostbyname($query);
echo '<br />'.$query.'<br />';
echo $ipAddress;
if($ipAddress !== $query){
$time_end = microtime_float();
$time = $time_end - $time_start;
echo '<br />using gethostbyname '.$time.' seconds to check the '.$query.'<br /><br />';
}
else
{
echo '<br />ERROR: Invalid URL '.$query.'<br /><br />';
}
}
?>
-
11th Apr 2011, 02:45 PM #20OPBannedWebsite's:
WarezRelease.org ThatHosting.coNone of these codes work.
__________________
Added after 22 Hours 14 minutes:
Wud this work:
Code:<?php if(!defined("WCDDL_GUTS")) exit; // Config $modEnabled = true; $subBacklink = "yoursite.com"; function subBacklink($arr) { // Pretty old-style code, too tired to make a more complex piece // of code today. Maybe someone will modify it. global $subBacklink; if(!$arr['status']) return $arr; $surl = $arr['site']['surl']; $get = @file_get_contents('http://'.$surl.'/'); if(preg_match('#href=\"http://(www\.)?'.$subBacklink.'#i',$get)) return $arr; $arr['status'] = false; return $arr; } if($modEnabled) $core->attachDataHook("submitChecksPass","subBacklink"); ?>
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Whitelisting with Zunox Help
By blankshare in forum Technical Help Desk SupportReplies: 2Last Post: 13th Dec 2011, 02:01 AM -
Mechoddl whitelisting
By lukip006 in forum Forum and DDL DiscussionReplies: 2Last Post: 3rd Jul 2011, 09:14 AM -
[Buying] Need WCDDL mod (Self Whitelisting)
By mannNmeet in forum Completed TransactionsReplies: 1Last Post: 24th Apr 2011, 09:16 AM -
[Official] DDL0.com Whitelisting & Re-Rating (Apply Here)
By SJshah in forum Forum and DDL DiscussionReplies: 220Last Post: 1st Feb 2011, 12:16 AM -
Whitelisting.
By CyberPirate in forum Forum and DDL DiscussionReplies: 9Last Post: 4th Mar 2010, 11:12 AM
themaManager - edit and manage...
Version 3.95 released. Open older version (or...