trouble stopping cheating- anti-cheat trick?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
illmapu
Forum Commoner
Posts: 47
Joined: Fri Aug 22, 2003 1:48 pm

trouble stopping cheating- anti-cheat trick?

Post by illmapu »

Hi,

I have a site that the members get to earn credits when they show our webpages to anyone (non-members). I have it so it adds a credit into their account with no problem, my only problem is that if they(member) refresh their browser, it will keep adding credits and obviously they could add a lot of credits into their account pretty quickly. (cheating)

I record ip of each user. What I did do was make it so if the same user visited the page, it would deduct a credit too, so it didn't add any new credits. BUT the problem that made was if a totally different member viewed the page, it deducted a credit from them too...lol

I have also tried using sessions, but they don't work the way i need them too, for example, if they show 2 diff. pages to the same person(to earn 2 credits), it doesn't let them get credit for showing two pages if i have it to stop the sessions at 1.

Does anyone know how I can stop someone from refreshing or stop them from cheating? I hope any of my jumble makes sense LOL

Thanks in advance!

8O
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

A database of IP addresses (of the visitors to that page) that is automatically emptied after the time period expires (the time period being how many days or hours apart you want each credit to be). I think that system is a good one if sessions aren't working for you.

Cookies are a good solution, but if someone has them disabled, it renders your anti-cheat measures useless.
Post Reply