Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

tools for obfuscating html and css [closed]

I am looking for something like this or this

what it does

rewrites classes and ids in CSS, HTML, and JavaScript files, doing something like .class to .a or #id to #a not sure the javascript obfu is great to use ( i prefer google closure to do this ) but the html and css is the question.

is there any alternative ?

like image 710
Adam Ramadhan Avatar asked Sep 02 '11 03:09

Adam Ramadhan


People also ask

Which tool is used for HTML and CSS?

Adobe Dreamweaver is a web design software tool that allows you to edit HTML, CSS, and JavaScript code in a live environment.

Can HTML be obfuscated?

The HTML can't be obfuscated since the browser needs to render the proper semantic HTML tags.

What is obfuscation tool?

A tool called an obfuscator will automatically convert straightforward source code into a program that works the same way, but is more difficult to read and understand. Unfortunately, malicious code writers also use these methods to prevent their attack mechanisms from being detected by antimalware tools.

Can CSS be obfuscated?

CSS Obfuscator is an unique way to protect your stylesheets from theft.


2 Answers

Google's Closure Stylesheets can rename your class names. It work in conjunction with Closure Template for the HTML and Closure Compiler for the JavaScript.

Closure Stylesheets makes it possible to rename CSS class names in the generated stylesheet, which helps reduce the size of the CSS that is sent down to your users. Of course, this is not particularly useful unless the class names are renamed consistently in the HTML and JavaScript files that use the CSS. Fortunately, you can use the Closure Compiler to update the class names in your JavaScript and Closure Templates to update the class names in your HTML.

like image 70
Jerome Avatar answered Oct 17 '22 07:10

Jerome


I saw html muncher mentioned in an answer to a similar question. I have not tried it, but it looks to be as simple to use as what you mentioned in your comment on Jerome's answer. It doesn't look to be actively maintained though.

[Update] I also found a similar node project, munch.js, that says it is based on html muncher.

like image 36
tobymackenzie Avatar answered Oct 17 '22 07:10

tobymackenzie