?
Solved

Opinions on Javascript obfuscators, anyone?

Posted on 2014-09-23
6
Medium Priority
?
122 Views
Last Modified: 2014-09-23
I'm just trying to get a feel of how many people actually use JavaScript obfuscators, and I'd also be interested in your opinion on what you think about it.

Thanks.
0
Comment
Question by:elepil
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 40340200
Waste of time. Period
Why do you want to do it?
0
 

Author Comment

by:elepil
ID: 40340242
Gary, I was thinking of making a "fat client" where all form validations will be done within the page with JavaScript. The alternative is to allow PHP to validate the form, but that might take longer depending on the traffic on the website. Also, it occurred to me that someone can just copy the page and remove all validations and submit the form.

I figured obfuscating the JavaScript might help.
0
 
LVL 82

Accepted Solution

by:
leakim971 earned 668 total points
ID: 40340253
good for lamers
experts will rewrite the code so, IMHO, it's not useless
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 58

Assisted Solution

by:Gary
Gary earned 668 total points
ID: 40340254
Js shouldn't be relied on for validation, yes you can validate the input before submitting to prevent unnecessary work at the server, but that is the only main reason (apart from giving tips to the user on how to fill in the form)

All validation should be done at the server side - never rely on the js to do the work, they don't need to remove the js, just disable js in the browser.

And obfuscation is irrelevant in this case.
0
 
LVL 84

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 664 total points
ID: 40340256
Obfuscating doesn't help, spammers and hackers have code to automatically de-obfuscate it.  It only prevents consumers from reading it.  For validation, you should use javascript on the page to help the user fill out the form correctly.  But you should also validate and check the submissions with PHP on the 'action' page because the spammers and hackers will post directly to your page and bypass all of your javascript.  You should be doing Both.
0
 

Author Closing Comment

by:elepil
ID: 40340319
I think I have an idea how other developers feel about this. Thanks for the feedback, guys.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question