JavaScript Question: How do I Hide JavaScript Code? Hide javascript code from view source. Sometimes you want to protect your JavaScript code from stealers or attackers. Sometimes you want to showcase an app but you want the user to not copy the code for obvious reasons. I got a tutorial request to show that how can we easily protect JavaScript code. So here it is.
One method is to minify your code. Keep the source and share minified version of code.
There are many online tools available to minify the code. Your favorite code editor can also minify code for you. We have minification tutorial for this. So go check it out.
But sometimes you have to share the actual code. In that case, you can use any JavaScript obfuscator tool. There are many such tools available online that give you option to even customize your output and level of complexity. It won't protect your code 100%. But it will give your code enough protection to give stealer hard time to figure it out. You can use parts of your code to make it not-so-easily readable, or implement this method for whole document. keep the source to yourself and share the processed code.
Which methods do you use to protect or hide your JavaScript code?
Full Playlists:
JavaScript Problem Solving:
http://bit.ly/JavsScriptProblemSolving
Web Development Essentials:
http://bit.ly/WebDevEssentials
Crash Courses:
http://bit.ly/WSPCrashCourses
How to Hide CSS Code
• Hide & Protect CSS Code
Give this video a LIKE
SUBSCRIBE to Channel if you haven't already
Hit BELL icon to receive updates
Share your thoughts in comments
Share our videos on social media platforms
Give us feedback
Follow us on social media
Tell us what should we cover for you.
Ask programming, web development, software engineering, frameworks related questions.
Thanks for watching!
Stay tuned!
Channel: / webstylepress
Website: https://www.webstylepress.com
FaceBook: / webstylepress
Twitter: / webstylepress
Instagram: / webstylepress
LinkedIn: / webstylepress
GitHub: https://github.com/webstylepress
#WebStylePress #JavaScript #Security #CodeSecurity #JS #code #WebDevelopment
Смотрите видео How To Hide / Protect JavaScript Code | Javascript Security онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь WebStylePress 16 Май 2019, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 64,699 раз и оно понравилось 1.1 тысяч людям.