Preventing one IP from having the page open more than once

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
peter986532
Forum Newbie
Posts: 6
Joined: Wed Dec 30, 2009 9:38 pm

Preventing one IP from having the page open more than once

Post by peter986532 »

Hi,

I'm looking for a way to prevent a single IP address from having a page open in multiple windows. Any suggestions?
User avatar
MindOverBody
Forum Commoner
Posts: 96
Joined: Fri Aug 06, 2010 9:01 pm
Location: Osijek, Croatia

Re: Preventing one IP from having the page open more than on

Post by MindOverBody »

General idea is to make database table where upon page load IP of visitor will be inserted.
First check database table for visitors IP, and if not found show him page, else do safety percotions. Hope this will help somehow.
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: Preventing one IP from having the page open more than on

Post by VladSun »

In general, you simply can't limit it, because HTTP is a stateless protocol.
There are 10 types of people in this world, those who understand binary and those who don't
peter986532
Forum Newbie
Posts: 6
Joined: Wed Dec 30, 2009 9:38 pm

Re: Preventing one IP from having the page open more than on

Post by peter986532 »

Thanks for the responses. I'll think I'll go the path MindOverBody suggested
Post Reply