Forum Moderators: open
document.write (' ... ');
document.write (' ... ');
and then sticking it in an external javascript file and referencing the file from the html document.
A lot of people won't be able to figure out where to find the code, but anyone familiar with building websites will find it in a couple of seconds.
HTML is an interpreted format and as such has to be sent to the user’s browser as its source. Any attempts to obfuscate it are just that, only attempts. Your real IP is in the logic behind the site, and not the front-end HTML.
For whatever reasons, we regularly see anywhere up to about 10% of users without Javascript available. That’s too many to throw away for the sake of an easily defeated anti-copying measure.
the most important users without javascript are the search spiders, so in this case using javascript would be insane.
Well, not always. Among the navigation tools I employ on the pages of my site I use javascript-powered forms, but the whole html code for the form is stored in an external .js file. Why? Because I don't think it's necessary for the spiders to read through the same kilobyte of code on every page they visit. Plus, it's a long and general menu, so it would make the parsed content less specific.
But this is slightly off the point - I don't put that html code in an external .js file in order to "hide" it from humans, I do it merely as a matter of convenience.
As we are pretty much all agreed, attmpting to hide html code is a bit of a lost cause.