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

Page 3 of 3 FirstFirst 123
Results 21 to 24 of 24
  1.     
    #21
    Retired NinJa
    Website's:
    loledhard.com
    Dunno y the code didnt work, may be some silly error. Havent executed so cant say much. Anyways the code u just posted looks like it would work fine & smoothly. Try it out.



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

  2.     
    #22
    Member
    PHP Code: 
    <?php

    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 (
    stripos($page,$ururl)===false
          return 
    false
        else 
          return 
    true;
    }

    if(isset(
    $_POST['siteurl']) && !empty($_POST['siteurl']))
    {
    //jomasaco's code
    $siteurl $_POST['siteurl']; //need be in http 
    $surl $siteurl;
    if (!
    preg_match('#^http://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?$#i'$surl))  //not sure if are the best way
    die('Invalid Domain shold be in format http://domain.tld');
    $surl parse_url(trim($surl)); //remove spaces split the url 
    $surlstr_ireplace("www.","",$surl['host']); //get host
    $ipAddress gethostbyname($surl);
    if(
    $ipAddress === $surl)
    {
        die(
    'Error: Invalid Domain.');
    }
    //jomasaco's code
    $ururl "extremeddl.net";

    $connect mysql_connect ("localhost""root""jorge") or die ('Connection Fail!');

    mysql_select_db("wcddl"$connect) or die ('lol');

    $x mysql_num_rows(mysql_query("select url from wcddl_whitelist where url = '".mysql_real_escape_string($surl)."'"));
    if (
    $x!=0)
    {
      die (
    "Already Whitelisted");
    }
    $x mysql_num_rows(mysql_query("select url from wcddl_blacklist where url = '".mysql_real_escape_string($surl)."'"));
    if (
    $x!=0)
    {
      die (
    "Your Site are Blacklisted.<br /> Contact the admin.");
    }
    elseif (
    $x==0)
    {
      
    //curl_part to retrieve content from the said sitename & chk for link back 
      
    if(linkback($siteurl,$ururl)==true)
      {
        
    $add mysql_query("INSERT INTO wcddl_whitelist (url) VALUES ('".mysql_real_escape_string($surl)."')");
        echo 
    "Whitelisted!";
      }
      else
      {
        die(
    'No Link Back');
      }
    }
    }
    else
    {
        echo
    '
        <form action="'
    .$_SERVER['PHP_SELF'].'" method="post">
        <input type="text" size="32" class="text" value="http://" name="siteurl" />
       <input class="button" type="submit" name="submit"/>
        '
    ;
    }

    /* entire credits to humour
    http://www.besthostingforums.com/member.php?u=5806 */
    ?>
    try again, not full tested but i guess are ok.


  3.   Sponsored Links

  4.     
    #23
    Banned
    Website's:
    WarezRelease.org ThatHosting.co
    hi, some 1 can optimize the code, cos as jomasaco said, the linkback maybe commented and not visible on a page.

  5.     
    #24
    The Wise One
    Website's:
    twilight.ws ddlrank.com
    Chris why dont you atleast try finding the solution yourself and then when you run into an error you ask for our help... This way you will learn more...

Page 3 of 3 FirstFirst 123

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