alex506 Posted September 4, 2011 Share Posted September 4, 2011 aim: to create a page where after a set number of pageviews/hits (from any ip) it redirects to a set url permanently. (if it's easier with a different language do say) thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/246422-how-tolimit-number-of-pageviews/ Share on other sites More sharing options...
litebearer Posted September 4, 2011 Share Posted September 4, 2011 rough idea (am sure those more proficient can suggest a better method)... db table - id, ip, hits page 1 get ip check if ip in table - NO - insert ip and hits - YES AND hits<max, increment hits - YES AND hits =>max send to url --- note: what if there are more than one unique user in same ip? Quote Link to comment https://forums.phpfreaks.com/topic/246422-how-tolimit-number-of-pageviews/#findComment-1265434 Share on other sites More sharing options...
alex506 Posted September 4, 2011 Author Share Posted September 4, 2011 more than one user on the same ip is ok. thanks a lot for that. Quote Link to comment https://forums.phpfreaks.com/topic/246422-how-tolimit-number-of-pageviews/#findComment-1265478 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.