Results 1 to 8 of 8

Thread: How to lock a directory?

Hybrid View

  1. How to lock a directory?

    So I have all kinds of files uploaded in a directory and I'd like to make people fill out a survey or some aff offer before they can download any of them. How can I do that with a program like cpalead? They provide codes that block a page so people have to fill them before being able to access the content.
    thanks

  2. #2
    Join Date
    Dec 2008
    Location
    Redmond, Oregon
    Posts
    828
    Zango is a popular one. Not sure if you can search for ad networks that use a
    page overlay
    all though it wont stop all of them doing this as viewing the source will show the links your covering with the ad.

    Might need to use a system that can verify the completion of offers or surveys once verified then they can access a page.

    Reverse IP Check ಠ_ಠ Proxy Sites
    <?php if ($youask == 'stupid question') { echo ('stupid answer'); } ?>

  3. What I want is to block the directory, like mysite.com/downloads to make people fill an offer before accessing any file in it, rather than a single page. I hope that's possible somehow.

  4. #4
    Join Date
    Dec 2008
    Location
    Martinique, FWI
    Posts
    321
    You should try this:

    • Create an index.php file in mysite.com/downloads
    • Copy & Paste this PHP code to list all files in the directory.
    • Now add the CPALead/Zango script


  5. Quote Originally Posted by Come View Post
    You should try this:

    • Create an index.php file in mysite.com/downloads
    • Copy & Paste this PHP code to list all files in the directory.
    • Now add the CPALead/Zango script

    Just did this, but it only works when I go to the folder itself, it's not stopping me from downloading the files in it directly - which is what i need

    Btw, the files are also in different sub folders, like mysite/downloads/324t3erf/file1.mp3
    mysite/downloads/abct/file2.mp3
    ..

  6. #6
    Join Date
    Dec 2008
    Location
    Martinique, FWI
    Posts
    321
    Challenge Winned (in 1 hour ^^")
    Try it now (maybe bugs) : http://come-host.com/html/cparez/
    Last edited by Come; 19 February, 2009 at 01:27 AM.

  7. tried that, but it just shows a 403 forbidden error now
    Anyways thanks for the effort.
    I guess it's a bit a more complicated that I thought, so I'll ask my programmer to fix that.


    Quote Originally Posted by Come View Post
    Challenge Winned (in 1 hour ^^")
    Try it now (maybe bugs) : Download

  8. #8
    It is possible with a bit of coding and if you chmod all the files so that access from just anyone can't get them.

    I used something sorta similar when I was trying to setup for clickbank and didn't want just anyone downloading the eBook.
    Programmer, web developer and entrepreneur.

Similar Threads

  1. Replies: 5
    Last Post: 5 August, 2010, 20:52 PM
  2. Replies: 0
    Last Post: 2 July, 2010, 19:40 PM
  3. phpBB Script: Auto Lock topics
    By mega in forum Programming
    Replies: 0
    Last Post: 11 May, 2009, 20:55 PM
  4. How to lock down c99 and massmailer scripts?
    By Coastercraze in forum Managing
    Replies: 8
    Last Post: 24 March, 2009, 07:17 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •