Welcome to WebmasterWorld Guest from 54.145.209.34

Forum Moderators: phranque

Promotional games

   
10:09 am on Jul 7, 2006 (gmt 0)

10+ Year Member



I'd like to offer something like flash games on my site that come with a highscore table so that visitors can compete with each other, and I can offer prizes at the end of the week/month for high scorers.

Does anyone know where I can find such things? Haven't had any luck googling.

11:05 am on Jul 7, 2006 (gmt 0)

WebmasterWorld Senior Member kaled is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Flash is a client-side technology but high-score saving would have to be implemented server-side (by submitting the score as form data). You might find a use for Ajax technology (javascript interacting with the server) but that's another story.

If you can write or find the flash games, then a little php or perl scripting should be all that is required to save the high-scores. You should be aware, however, that a hacker would find it easy to add fake scores.

Kaled.

11:28 am on Jul 7, 2006 (gmt 0)

10+ Year Member



That's a good point about hacking :/ I can't do programming myself but am looking for somewhere that offers such games pre-programmed. There must be some!

Is there any way this could be implemented that would make it very difficult to hack? I.E. something other than flash?

11:37 am on Jul 7, 2006 (gmt 0)

10+ Year Member



A Hacker could find it easy to send false scores if he/she wanted to by just making their own form and submitting it to your site.

You could check the referrer on all form submissions to ensure it was from your domain and refuse it otherwise.

Also you could munge the data you are sending so they would not know in what format they would need to send it in.

It could still be hackable, but this would prevent the most common ways to send false form data. You most likely find it difficult to find this pre-written so you would need to get someone to help you with that.

12:46 pm on Jul 7, 2006 (gmt 0)

WebmasterWorld Senior Member kaled is a WebmasterWorld Top Contributor of All Time 10+ Year Member



The security problem is unrelated to the Flash technology, it's the form submission that's the problem.

I don't play Flash games - do they have the ability to output a score that could be read by javascript? If not, give up now.

Kaled.

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month