DEV Community

Cover image for How to hide JavaScript code form view source
YSF
YSF

Posted on

How to hide JavaScript code form view source

Hi, and welcome back in a new Tutorial
i was simple to hide your javascript code its just go to this website : https://www.obfuscator.io/ and past your javascript code then click "Obfuscate" automatically the website convert your code to a sysntax can't humain read and or undrestand it. then copy the code in the "Output" and past it in your project
Now!! you have a javascript code can't humain undrestand but can machine

Top comments (8)

Collapse
 
martinfjant profile image
Martin Falk Johansson
Comment hidden by post author
Collapse
 
ysf00009 profile image
YSF

HHh, thanks ,because you are afraid of my future, I'm Nothing to do with JS I'm a Laravel devlopper

Collapse
 
martinfjant profile image
Martin Falk Johansson

Then why are you writing bad tutorials that teaches things you should not do in JS?

Thread Thread
 
ysf00009 profile image
YSF • Edited

I think you don't have any problem, right?

Collapse
 
schmoris profile image
Boris
Comment hidden by post author
Collapse
 
ysf00009 profile image
YSF

Hi, I'm just talking about "vanilla" Javascript : I'm making this post to show peoples how to hide his frontend code not backend

Collapse
 
schmoris profile image
Boris

You can not hide client-side JavaScript. That's why it's called obfuscating and not hiding :-)

It's hard to read, but still accessible in the source code.

Thread Thread
 
ysf00009 profile image
YSF

Thx, for the information

Some comments have been hidden by the post's author - find out more

Heroku

This site is powered by Heroku

Heroku was created by developers, for developers. Get started today and find out why Heroku has been the platform of choice for brands like DEV for over a decade.

Sign Up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay