1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How do I make a person enter a password to get access to a page?

Discussion in 'Programming' started by powwka, Feb 8, 2007.

  1. #1
    I am going to have a page on my website full of videos for those people that buy my e-book. Since I only want people that bought the e-book to view the page, I need it to be password protected.
    Can someone explain how to do this? (green rep will be given)
    Thanks

    EDIT: Oops, I just saw looked a couple posts down and saw someone with basically the same question. :eek:
     
    powwka, Feb 8, 2007 IP
  2. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #2
    You need a membership/profile system. If I were you, I would look to save serious time by just buying a pre-made script to do this, accept payments to give access to files/pages
     
    frankcow, Feb 8, 2007 IP
  3. picouli

    picouli Peon

    Messages:
    760
    Likes Received:
    89
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If
    - not too many people bought your e-book
    - you use Apache
    - you have ssh/telnet access to your server

    THEN the best way to do it, IMHO, is to use mod_auth:
    http://httpd.apache.org/docs/2.0/howto/auth.html

    You would just add a new user/password each time somebody buys your e-book, or you just use one username/password (a bit more insecure) and you give it to them

    Note that this could also be done with a PHP script, but it need a bit of coding experience...

    HTH, cheers! :)
     
    picouli, Feb 8, 2007 IP
    powwka likes this.
  4. powwka

    powwka Peon

    Messages:
    583
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Is there a site that sells this or should I go to the BST forum?
     
    powwka, Feb 8, 2007 IP
  5. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #5
    frankcow, Feb 8, 2007 IP
    powwka likes this.