Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2008
    Thanked 0 Times in 0 Posts

    Restrict the download of a file to once per IP address.

    As the title suggests, I am looking for a way to limit the downloading of a file to one per IP address. The company I work for wants to put a coupon on our website, but restrict it to one per customer. The easiest way to do that in my opinion is to restrict the coupon to one per IP address. Does anyone have any ideas or suggestions on how to accomplish this??


  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Thanked 2,224 Times in 2,211 Posts
    There is no efficient way to track users based on their Ip address. There may be more than one user sharing a single IP, or there may be users who use dynamic IPs to connect to Internet. You may have to use a username-password login mechanism for this.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Regular Coder
    Join Date
    Sep 2007
    AZ, USA
    Thanked 46 Times in 46 Posts
    Not to mention shared computers, such as at libraries, which have many different users under one IP. There isn't an excellent method for doing this kind of thing (at least that I'm aware of). There are always ways around. A login/register would (usually) require a password, with only one account available with the same email. But then you could create many emails. I suppose one way would be to require a credit card number or something at the registration, and not a ton of users are going to just give our their cc number to a random site.

    Having said that, login/register is probably the best option. Not a ton of people will create 100 different email addresses/ips/whatever to get 100 $1-off coupons for a water bottle...


    Posting Permissions

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