Page 1 of 1
Redirect IP after x visits
Posted: Wed Apr 28, 2010 8:06 am
by psmith
Please help I'm tring to write some PHP code to insert visitors IP in to SQL.
If ip xx.xx.xx.xx visits webpage (x) times redirect to (x page)
Is anyone willing to help me?
Re: Redirect IP after x visits
Posted: Wed Apr 28, 2010 8:30 am
by psmith
Found a solution but it works on sessions rather then inserting in sql so can expire....
http://uclue.com/?xq=874
So along the lines of this script (though would like to see if person reachs x hits will permanently block access)
Re: Redirect IP after x visits
Posted: Wed Apr 28, 2010 3:18 pm
by Jonah Bron
You can't trust IP addresses. A system like that can be spoofed with Tor. Plus, most people have dynamic IPs. If you log a person as having seen the page n times, his IP changes, and someone else get's that IP, they won't be able to see it at all.
I think the anonymity of the internet makes this sort of thing nearly impossible. The only way that I know of, is to make them sign up so that you have their email address.