PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sun Sep 23, 2018 4:24 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Tracking content access
PostPosted: Tue Jan 21, 2014 11:51 pm 
Offline
Forum Newbie

Joined: Thu Nov 04, 2004 7:09 am
Posts: 5
Hi all,
I am developing an application which will post links to a website. I want to ensure that visitors to that website are only allowed to click each link to get its content once. Any subsequent clicks should not deliver the content. To track which users have visited the links I am planning to keep a log of IP addresses in a database which can be searched to determine if a particular IP address has already clicked a particular link. My problem is that someone who does not have a static IP address through their ISP can potentially be given a different IP the following day, and then revisit the website and click to get the content again. Is there anything I can do to prevent this from happening? Obviously I have no control over a users IP address so does anyone know of another way to track who has accessed which content?


Top
 Profile  
 
PostPosted: Wed Jan 22, 2014 12:17 am 
Offline
Site Administrator
User avatar

Joined: Wed Aug 25, 2004 7:54 pm
Posts: 13576
Location: New York, NY, US
Probably a using a cookie would be the easiest method.

_________________
(#10850)


Top
 Profile  
 
PostPosted: Wed Jan 22, 2014 1:07 am 
Offline
Spammer :|
User avatar

Joined: Wed Oct 15, 2008 2:35 am
Posts: 6617
Location: WA, USA
If you must be absolutely sure that someone does not get the content more than once then I'm sorry but you'll have to loosen your requirements because it's just not possible. You can settle for "make it harder to by checking a combination of variables" or "only allow it once per email address by requiring user registration" but you can't really get any more secure/reliable beyond that.


Top
 Profile  
 
PostPosted: Wed Jan 22, 2014 12:56 pm 
Offline
Site Administrator
User avatar

Joined: Wed Aug 25, 2004 7:54 pm
Posts: 13576
Location: New York, NY, US
I agree. You can make it harder, but not absolutely certain.

_________________
(#10850)


Top
 Profile  
 
PostPosted: Wed Jan 22, 2014 7:01 pm 
Offline
Forum Newbie

Joined: Thu Nov 04, 2004 7:09 am
Posts: 5
Thanks for the replies guys. Yeah it looks like I am going to have to just make it as hard as possible to abuse.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group