Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Mr MM

macrumors 65816
Original poster
Jun 29, 2011
1,116
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
 
Last edited:
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

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.
 
Create a cookie

Create a cookie, give it a specific duration and on load check if the cookie is active.
 
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.

not ideal, since there will be multiple users thus removing the content would lead me to have to update again in another address

Create a cookie, give it a specific duration and on load check if the cookie is active.

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

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.
 
oh this is going to do the trick many thanks!

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.
 
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.

and I thought that I was going to get things easy... well you really got what I need to do, thanks!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.