1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

protect download page

Discussion in 'General Programming Chat' started by tooslim, Nov 6, 2009.

  1. tooslim

    tooslim Regular Member

    Joined:
    Dec 12, 2008
    Messages:
    366
    Likes Received:
    84
    Location:
    California
    so i have my ebook, my sales page and buy now button and everything set up but i now need help setting up the download page after they pay. i wnt it protected so no one can just give it out ya know. i dont want to pay for DLgaurd or anything either. i read around but most threads i find are for protecting clickbank products.

    any help would be appreciated
     
  2. tooslim

    tooslim Regular Member

    Joined:
    Dec 12, 2008
    Messages:
    366
    Likes Received:
    84
    Location:
    California
    no help?? cool. im fucked
     
  3. fiandalfie

    fiandalfie Newbie

    Joined:
    Feb 7, 2008
    Messages:
    24
    Likes Received:
    28
    If you don't want to pay for DLguard download the nulled version off here. It's only version 2 but it'll still protect your download page...The alternative route is create a .exe ebook using Armand Morins eBook Generator or Derek Gehl's ebook pro so you can disable it remotely if some bastards start to share it.

    Hope this helps?
     
  4. SSL9000J

    SSL9000J Regular Member

    Joined:
    Oct 20, 2009
    Messages:
    295
    Likes Received:
    179
    Occupation:
    Audio Visual Technician, Audio Engineer, Graphic D
    Location:
    Atlanta, GA, USA
    Since the easiest way to find a download page is just by searching "clickbank will appear", "thank you for your download", etc., how about just using a random page name and changing it every so often, just for good measure?
     
  5. hdd87

    hdd87 Newbie

    Joined:
    Nov 22, 2009
    Messages:
    1
    Likes Received:
    0
    You have to store your ebook in an non public folder.
    Then write a little php script do send you the ebook, after a submit
    Code:
    function makeDownload($file, $dir, $type) {
        
        header("Content-Type: $type");
    
        header("Content-Disposition: attachment; filename=\"$file\"");
    
        readfile($dir.$file);
        
    }
    
    $dir = '/is/htdocs/wp1042434_BDEO6BJ7VB/www/download/';
    
    $type = 'application/pdf';
    
    if(!empty($_GET['file']) && !preg_match('=/=', $_GET['file'])) {
        if(file_exists ($dir.$_GET['file']))     {
            makeDownload($_GET['file'], $dir, $type);
        }
            
    }
    
    
    You can trigger the script by:
    Code:
    http://www.yourDomain.de/download.php?file=funnyEbook.pdf