| Although using the users IP address isn't strictly the best way to go about it (because more than one user can access from the same IP), I suppose performing two queries per page would be the way you'd want to approach this. The first query simply looks up the users IP in the database, then if it doesn't exist, logic dictates that the second query is run. |