1 visit page MAX

Discussion of testing theory and practice, including methodologies (such as TDD, BDD, DDD, Agile, XP) and software - anything to do with testing goes here. (Formerly "The Testing Side of Development")

Moderator: General Moderators

Post Reply
Forum Newbie
Posts: 1
Joined: Mon Oct 25, 2010 11:30 pm

1 visit page MAX

Post by FireBurst »

Hello! I am new to php and need to know if its possible to do a 1 visit only page?

Create a page and when its visited, its blocked or deleted? So the visitor can continue read but if refreshing, go back or give url to someone, its not working anymore? Any solution? Thanks :)
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: 1 visit page MAX

Post by Jonah Bron »

There's no 100% sure way to do that without requiring some sort of voluntary identification. You can set a cookie, but they can delete it. You can add their IP address to a database, but IP addresses are shared a lot of the time by people on an ISP, and people's IP address changes, or they could use Tor. The measures you take really depend on how important it is. The surest way is to require them to present and confirm an email address.
Post Reply