Wondering if this would be a good idea...

For discussions about game development that does not fit in any of the other topics.
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Wondering if this would be a good idea...

Post by Jackolantern »

I never really got the idea of what Halls was referring to, which I believe was putting Javascript in an include file, or something like that. Supposedly it won't be in the source view of the browser, although I have not tried it myself. I know how to view the source in the browser.
The indelible lord of tl;dr
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Wondering if this would be a good idea...

Post by hallsofvallhalla »

ah now I see.. again. Thanks for the explanation.
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Wondering if this would be a good idea...

Post by Jackolantern »

Ahhh, so that is how you see it? I figured there had to be some way, or the browser would not have it to react to.

Obfuscation is going to be the best way to prevent others from seeing your code. For example, this obfuscator is one of the best low-cost obfuscators I have seen. Here is an example of its handy work:

Image
The indelible lord of tl;dr
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Wondering if this would be a good idea...

Post by hallsofvallhalla »

nice, is it a pain to implement?
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Wondering if this would be a good idea...

Post by Jackolantern »

Not at all. They also have a free trial you can download to check it out.
The indelible lord of tl;dr
User avatar
kaos78414
Posts: 507
Joined: Thu Jul 22, 2010 5:36 am

Re: Wondering if this would be a good idea...

Post by kaos78414 »

Every discussion about security like this gets me worried about the vulnerability of my applications. If all my validation and actual application logic is being handled by PHP, do I really need Obfuscation? (all of my JS is just handling effects and AJAX)

Then of course, server side, I clean and validate all form data, perform logic that checks URI data etc. I'm pretty confident that my security server-side is decent, though I know you can never be 100% secure.

So, tell me if I understand correctly: If the javascript handles any kind of data manipulation, you may be at risk? So the most secure method then is to immediately send the data rather than perform any kind of client side checks? If so, than I think I'm okay :)

EDIT: Also, hopefully it may deter potential threats that most of the outputted data is minified (white-space is stripped, comments removed), then gzipped, so it ends up being fairly compacted and hard to read.
w00t
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Wondering if this would be a good idea...

Post by Jackolantern »

Even if your code is acting as nothing more than a dumb client, it still could not hurt to obfuscate or heavily minify it. Nothing good can come from your users studying your code, even if it is nothing more than giving a slight leg-up to your competitors.
The indelible lord of tl;dr
User avatar
PaxBritannia
Posts: 680
Joined: Sun Apr 18, 2010 1:54 pm

Re: Wondering if this would be a good idea...

Post by PaxBritannia »

When revealing the code, you might get 3rd party websites or software which interacts with it, providing maybe a more specialised GUI, etc. :lol:

ita Stet.
User avatar
Callan S.
Posts: 2042
Joined: Sun Jan 24, 2010 5:43 am

Re: Wondering if this would be a good idea...

Post by Callan S. »

Probably worth keeping in mind those muds might not have used an actual grid. You can just have entries in the database, each one has a description of the room and the database ID for each direction you can go of the next location. The player entry records at what location/id they currently are at. Rather like old pick a path adventure books don't use a grid and instead page numbers. I'd suspect age of fable works this way (and was partly inspired by pick a path).
Fight Cycle : My latest Browser game WIP
Driftwurld : My Browser Game WIP
Philosopher Gamer : My Blog
Post Reply

Return to “General Development”