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

Results 1 to 2 of 2
  1.     
    #1
    Banned

    Default [PHP] AllDebrid.com link grab

    Hello,

    This is a script that grab download link from http://www.alldebrid.com.

    Requirement:

    1. Premium account on alldebrid.
    2. CURL enable on server.

    You have to add "cookie.txt" file on same folder where you put this script. After that change the file permission into "777".


    PHP Code: 

    <form method="post" action="">
    <input type="text" name="url">
    <input type="submit" value="Submit">

    <?php
    if($_POST['url'])
    {
    $url=$_POST['url'];


    $user ''// your username
    $pass ''// your password

    $cookie='cookie.txt';

    $login='http://www.alldebrid.com/register/?action=login&returnpage=';
      
    $ch curl_init($login);
      
    curl_setopt($chCURLOPT_RETURNTRANSFER1);
      
    curl_setopt($chCURLOPT_HEADER1);
      
    curl_setopt($chCURLOPT_FOLLOWLOCATION1);
      
    curl_setopt($chCURLOPT_REFERER'http://google.com/');
      
    curl_setopt($chCURLOPT_HTTPHEADER, array('Expect:'));
      
    curl_setopt($chCURLOPT_USERAGENT'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1');
            
    curl_setopt($chCURLOPT_COOKIEJAR$cookie);
            
    curl_setopt($chCURLOPT_COOKIEFILE$cookie);
      
    $page curl_exec($ch);


    $postfields "login_login=".$user."&login_password=".$pass;
    //echo " <br> $postfields";
    $fslogin "http://www.alldebrid.com/register/?action=login&returnpage=http://www.alldebrid.com/service/";









      
    $ch curl_init($fslogin);
      
    curl_setopt($chCURLOPT_RETURNTRANSFER1);
      
    curl_setopt($chCURLOPT_HEADER1);
      
    curl_setopt($chCURLOPT_FOLLOWLOCATION1);
      
    curl_setopt($chCURLOPT_REFERER'http://google.com/');
      
    curl_setopt($chCURLOPT_HTTPHEADER, array('Expect:'));
      
      
    curl_setopt($chCURLOPT_POST1);  
      
    curl_setopt($chCURLOPT_POSTFIELDS$postfields); 
      
    curl_setopt($chCURLOPT_USERAGENT'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1');
            
    curl_setopt($chCURLOPT_COOKIEJAR$cookie);
            
    curl_setopt($chCURLOPT_COOKIEFILE$cookie);




      
    $page3 curl_exec($ch);



    $postfields2 "";
    $loginee"http://www.alldebrid.com/service.php?link=".$url;



      
    $ch curl_init($loginee);
      
    curl_setopt($chCURLOPT_RETURNTRANSFER1);
      
    curl_setopt($chCURLOPT_HEADER1);
      
    curl_setopt($chCURLOPT_FOLLOWLOCATION1);
      
    curl_setopt($chCURLOPT_REFERER'http://google.com/');
      
    curl_setopt($chCURLOPT_HTTPHEADER, array('Expect:'));
      
      
    curl_setopt($chCURLOPT_POST1);  
      
    curl_setopt($chCURLOPT_POSTFIELDS$postfields2); 
      
    curl_setopt($chCURLOPT_USERAGENT'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1');
            
    curl_setopt($chCURLOPT_COOKIEJAR$cookie);
            
    curl_setopt($chCURLOPT_COOKIEFILE$cookie);




      
    $page4 curl_exec($ch);




        if(
    preg_match('/(http:\/\/.+alldebrid[^\s]+)/'$page4$link)){


            
    preg_match("%>(.*?)</a>%U"$data$name);
            
    $URL trim($link[1]);
            
    $downlz substr($URL0, -1);
            
    $filename substr(strrchr($downlz'/'), 1);


        }






    echo 
    $downlz;


    //By : NeVieL47 2011

    }
    ?>

    If it works, give me your feedback

    Thanks.
    neviel47 Reviewed by neviel47 on . [PHP] AllDebrid.com link grab Hello, This is a script that grab download link from http://www.alldebrid.com. Requirement: 1. Premium account on alldebrid. 2. CURL enable on server. You have to add "cookie.txt" file on same folder where you put this script. After that change the file permission into "777". Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Probation
    Hello, I could not make this script work on my site. it works only for 2 days in hors free user account. and the premium does not work. you know why?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 10th Sep 2012, 11:55 AM
  2. Download from alldebrid
    By paddicted201 in forum Technical Help Desk Support
    Replies: 2
    Last Post: 9th Jun 2012, 05:26 AM
  3. [Selling] web2.0 Link wheels - "Grab the best - Leave the rest"
    By wtgwarrior in forum Services
    Replies: 3
    Last Post: 13th Apr 2012, 09:05 AM
  4. what are other sites like realdebrid/alldebrid?
    By BalcanW in forum File Host Discussion
    Replies: 1
    Last Post: 5th Apr 2012, 04:38 PM

Tags for this Thread

BE SOCIAL