Jump to content

Stop Refreshing


Monk3h

Recommended Posts

I assume you meant 'cheating', but you could create a table that would store people's ip addresses and then create a function that would check to see how many times they've been to your site within so much time (use a timestamp), and if its greater than, lets say, 3, you can use a header("Location: http://"); thingie.

Link to comment
https://forums.phpfreaks.com/topic/107894-stop-refreshing/#findComment-553079
Share on other sites

If you are talking about stoping them from clicking on the little recycle-looking icon in your browser's menu bar, no. There is not. Not with PHP anyways.

 

MAYBE if you got REALLY SUPER fancy with Javascript, you could detect when they click it and return null. I know you can detect stuff like onExit, but I've never seen a refresh-getter-thing, so I honestly don't know. And of course you'd have to get an anti-right click function, though I do not recommened becasue that are soooo flippin annoying.

Link to comment
https://forums.phpfreaks.com/topic/107894-stop-refreshing/#findComment-553091
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.