# Obfuscation of Javascript with a HTML Page

**URL:** https://discourse.nodered.org/t/obfuscation-of-javascript-with-a-html-page/80506
**Category:** General
**Created:** [11 August 2023 18:46 UTC](https://discourse.nodered.org/t/obfuscation-of-javascript-with-a-html-page/80506 "2023-08-11T18:46:50Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![wilsomrm2](https://avatars.discourse-cdn.com/v4/letter/w/82dd89/32.png) [@wilsomrm2](https://discourse.nodered.org/u/wilsomrm2)
#### Post date: [11 August 2023 18:46 UTC](https://discourse.nodered.org/t/obfuscation-of-javascript-with-a-html-page/80506/1 "2023-08-11T18:46:50Z")

</div>

Hi All,  
I have a website using nodered behind the scene.

I would like to obfuscate the javascript within the HTML pages.

I have been trying to get node-red-contrib-obfuscator working but it is not documented.

Has anyone had any luck with node-red-contrib-obfuscator or is there a better way.

All the Best  
Mike

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [11 August 2023 18:51 UTC](https://discourse.nodered.org/t/obfuscation-of-javascript-with-a-html-page/80506/2 "2023-08-11T18:51:02Z")

</div>

Can't comment on that node. But if using uibuilder, you can use standard web workflows such as Gulp.

---

<div class="post-metadata">

### Author: ![wilsomrm2](https://avatars.discourse-cdn.com/v4/letter/w/82dd89/32.png) [@wilsomrm2](https://discourse.nodered.org/u/wilsomrm2)
#### Post date: [11 August 2023 19:16 UTC](https://discourse.nodered.org/t/obfuscation-of-javascript-with-a-html-page/80506/3 "2023-08-11T19:16:37Z")

</div>

Hi  
Thank you for the quick response.  
I have the website up and running working quite well.  
It is really more about the obfuscation of javascript with in webpage. I may need to have to create a custom node to do this but would rather not, if a solution already exists.

Thanks again.

All the Best  
Mike

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [11 August 2023 22:41 UTC](https://discourse.nodered.org/t/obfuscation-of-javascript-with-a-html-page/80506/4 "2023-08-11T22:41:49Z")

</div>

> [@wilsomrm2](#):
>
> obfuscate the javascript within the HTML pages

How is the page JavaScript created? Are you using template nodes to provide the JavaScript? If yes, then just obfuscate the JS before delivering it?

In short, provide more info about your setup and we can better assist.

---

<div class="post-metadata">

### Author: ![wilsomrm2](https://avatars.discourse-cdn.com/v4/letter/w/82dd89/32.png) [@wilsomrm2](https://discourse.nodered.org/u/wilsomrm2)
#### Post date: [11 August 2023 23:26 UTC](https://discourse.nodered.org/t/obfuscation-of-javascript-with-a-html-page/80506/5 "2023-08-11T23:26:12Z")

</div>

Hi Steve,

Yes exactly the javascript is embedded with in a html page served by a template node.

Yes I am trying to see if there is a way to obfuscate the JS within before sending.

I can do it in a number of ways but I am asking if there is a standard mechanism or specific node I could use?

All the Best  
Mike

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [10 October 2023 23:26 UTC](https://discourse.nodered.org/t/obfuscation-of-javascript-with-a-html-page/80506/6 "2023-10-10T23:26:57Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
