1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2009
    Rep Power

    preventing downloads through URL


    I have a website at mm-theory.com. On that website is a PDF you can download:

    **url to pdf**

    It is meant to be downloaded through paypal from the buy page: mm-theory.com/buy.aspx

    But since it's available through the URL, anyone can bypass paypal and download it directly.

    How do I prevent this? I wish to block people from downloading through the ULR but still allow for downloads if it is paid for through paypal. How can this be done?

    I am running IIS 6.0.

    Last edited by Will-O-The-Wisp; July 11th, 2016 at 04:13 AM.
  2. #2
  3. Headless Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Washington, USA
    Rep Power
    You do realize you posted the URL to the PDF on a public forum where all sorts of search engines will index it, right? I removed it for you.

    The only way to do this is to put the actual PDF in a place that is not web accessible, then create something server-side that first checks that the user is allowed to access the PDF before offering up the contents of the file.

    How you do so depends on what you're using on the backend. You have .aspx pages so I assume you're using ASP.NET?

IMN logo majestic logo threadwatch logo seochat tools logo