How to stop content access after a certain period of time?

Discussion in 'Web Design and Development' started by Mr MM, Jul 4, 2011.

  1. Mr MM, Jul 4, 2011
    Last edited: Jul 4, 2011

    Mr MM macrumors 65816

    Mr MM

    Joined:
    Jun 29, 2011
    #1
    I want to know how to code this into a website that Im doing right now, my client provides content (investment videos) to her clients, and I want them to stop having access to it after a certain period of time, how do I do that?

    PS: no its not any sorts of pron sites, its basically technical analysis of company papers
     
  2. bpaluzzi macrumors 6502a

    bpaluzzi

    Joined:
    Sep 2, 2010
    Location:
    London
    #2
    Just pulling it down off the site is going to be the easiest. Although people will still be able to view any copies in their local cache, or any versions they downloaded.
     
  3. nomade macrumors member

    nomade

    Joined:
    Dec 2, 2006
    #3
    Create a cookie

    Create a cookie, give it a specific duration and on load check if the cookie is active.
     
  4. Mr MM thread starter macrumors 65816

    Mr MM

    Joined:
    Jun 29, 2011
    #4
    not ideal, since there will be multiple users thus removing the content would lead me to have to update again in another address

    thanks Ill give it a try. and what happens if the user cleans the cookies?
     
  5. bpaluzzi macrumors 6502a

    bpaluzzi

    Joined:
    Sep 2, 2010
    Location:
    London
    #5
    The cookies are okay as long as you don't need it to be securely unavailable -- since the cookie is stored on the client machine, it's extremely easy for the end user to change it.
     
  6. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #6
  7. Mr MM thread starter macrumors 65816

    Mr MM

    Joined:
    Jun 29, 2011
    #7
    oh this is going to do the trick many thanks!
     
  8. bpaluzzi macrumors 6502a

    bpaluzzi

    Joined:
    Sep 2, 2010
    Location:
    London
    #8
    Brilliant! Didn't know you could do that! Great post!
     
  9. jared_kipe macrumors 68030

    jared_kipe

    Joined:
    Dec 8, 2003
    Location:
    Seattle
    #9
    Umm, I don't think so based on your initial post. You want someone to, presumably, pay you some money and have access to all your video content for say.. a week or something. That isn't something a .htaccess can achieve.

    You're going to need to do client login and permissions things to achieve what you want to do.
     
  10. Mr MM thread starter macrumors 65816

    Mr MM

    Joined:
    Jun 29, 2011
    #10
    and I thought that I was going to get things easy... well you really got what I need to do, thanks!
     
  11. manueld macrumors 6502

    Joined:
    Jun 8, 2009
    #11

Share This Page