> -----Original Message----- > From: Andre` Niel Cameron [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 20, 2001 10:34 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: [CGI] Hide Source? > > > Ok people dont get this. I am making a game and I dont want > them to be able > to see form fields and function calls/quer_strings so I can prevent > cheating!
Forget about all the disabling "view source", et al. To prevent "cheating" you need to: 1. Store the "secret" data on the server and use a session key of some sort that the client can pass back with each request to tie back to the secret data. 2. Compute a message digest (e.g. MD5) over the session key to prevent tampering. For an excellent treatment of these subjects, see Lincoln Stein's "Writing Apache Modules with Perl and C". If the game runs entirely on the client (JavaScript), then you're out of luck. > Well any way I have a related question, with java > script I can load a window with no menu bars,address > bar etc can perl do the same if so please let me know how:) This is an orthogonal question. Perl runs on the server, JavaScript runs on the the client. So, no Perl can't load a window without menu bars, etc. But Perl can create responses that contain JavaScript or other client-side constructs to achieve that result. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]