Activity Stream
48,167 MEMBERS
61949 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24
  1.     
    #11
    Banned
    Website's:
    WarezRelease.org ThatHosting.co
    so 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???????

  2.   Sponsored Links

  3.     
    #12
    Retired NinJa
    Website's:
    loledhard.com
    This 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($chCURLOPT_RETURNTRANSFER1);  
        
    curl_setopt($chCURLOPT_HEADER0);  
        
    curl_setopt($chCURLOPT_FOLLOWLOCATION1);  
        
    curl_setopt($chCURLOPT_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 

    this is compiled version. U still may have to add rectify things here



    You don't hate Justin bieber.You hate the fact you ain't Justin Bieber!

  4.     
    #13
    Banned
    Website's:
    WarezRelease.org ThatHosting.co
    hmm how/where shud i say my linjback is;

    under $siteurl

    $linkback 'http:// blah .net/'

  5.     
    #14
    Retired NinJa
    Website's:
    loledhard.com
    if(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!

  6.     
    #15
    Member
    parse_url don't remove the www. from domain, if pased as http;//www,domain.com will be accepted as www,domain.com


  7.     
    #16
    Banned
    Website'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 
    }
    i thinnk dis wot u mean on line 6? added $ururl = xtremeddl.net ???????????

    srry ima noob with php.

    error:

  8.     
    #17
    Member
    $ururl = "xtremeddl.net";
    if (stripos($page,$ururl)===false)


  9.     
    #18
    Retired NinJa
    Website's:
    loledhard.com
    Lets 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 
    $siteurlstr_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($chCURLOPT_RETURNTRANSFER1);  
        
    curl_setopt($chCURLOPT_HEADER0);  
        
    curl_setopt($chCURLOPT_FOLLOWLOCATION1);  
        
    curl_setopt($chCURLOPT_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!

  10.     
    #19
    Member
    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.com
    PHP 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 />';
    }
    }
    ?>
    using wamp and i don't have the curl installed to compare


  11.     
    #20
    Banned
    Website's:
    WarezRelease.org ThatHosting.co
    None 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");
    ?>

Page 2 of 3 FirstFirst 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Whitelisting with Zunox Help
    By blankshare in forum Technical Help Desk Support
    Replies: 2
    Last Post: 13th Dec 2011, 02:01 AM
  2. Mechoddl whitelisting
    By lukip006 in forum Forum and DDL Discussion
    Replies: 2
    Last Post: 3rd Jul 2011, 09:14 AM
  3. [Buying] Need WCDDL mod (Self Whitelisting)
    By mannNmeet in forum Completed Transactions
    Replies: 1
    Last Post: 24th Apr 2011, 09:16 AM
  4. [Official] DDL0.com Whitelisting & Re-Rating (Apply Here)
    By SJshah in forum Forum and DDL Discussion
    Replies: 220
    Last Post: 1st Feb 2011, 12:16 AM
  5. Whitelisting.
    By CyberPirate in forum Forum and DDL Discussion
    Replies: 9
    Last Post: 4th Mar 2010, 11:12 AM

Tags for this Thread

BE SOCIAL