Thread: Prevent Refresh
View Single Post
  #1  
Old 01-27-2011, 08:23 PM
PTGigi's Avatar
PTGigi PTGigi is offline
Crazily Friendly~HoF
 
Join Date: Jul 2009
Location: Somewhere >.>
Posts: 370
Gender: Female
Credits: 27,282
PTGigi
Default Prevent Refresh

Okay so I wasn't sure if this was a question or a suggestion so I'll throw it out.


I'm in the middle of coding something and REALLY need a way to disable refreshing, basically I don't want cheaters. (because I have a page that gives you an adoptable but I do not want you to get it twice through refresh, I suppose this could also be added to the 'congrats you've adopted ___" page but really I'd like it if someone could help out XD

I assume there isn't an exact way to do this since it involves messing with people's browsers. But is it possible to make a pop-up message when you hit F5 or refresh appear and say 'refreshing disabled' or whatnot? Or somehow make a way to remove the given adoptable if you refresh the page?

Anymore ideas or suggestions or anyone know of a way to do this? O.o Javascript will also work though all my Google searching only disheartened me (apparently this technique is mainly used by scam and porn sites T_T)

EDIT: Mrf, just thought of something else.

Is it possible (I've been trying but failing) to make some sort of variable that adds up as you visit the page? Sorta like the log-in attempts on forums?
__________________


"I see now that the circumstances of one's birth are irrelevant; it is what you do with the gift of life that determines who you are."~Mewtwo
My Adoptables|Nuzlocke Webcomic

Last edited by PTGigi; 01-27-2011 at 08:32 PM.
Reply With Quote