by ricardobeat · 13y ago · 0 comments
- break your CSS by making it dependent on javascript
- use inefficient compression, easily reversible, to "obfuscate" javascript
- both of these slowing your page loading time
That's like the worst of DRM badly emulated in a browser. You do realize that the script which checks the URL can also be modified by the copycat? Minifying CSS+HTML+JS as usual already gets you the most benefits, while being good practice. This is shooting your own foot. - break your door by making it dependent on a key
- use a easily reversible locking mechanism
- slow the time it takes to enter your home
You do realize that any locksmith can open your lock in less than a minute? Closing your door already gives you most of the benefits.Only half kidding, but I get tired of people dismissing clever tricks because it's not fool proof. Stealing is usually a function of reward/effort.
Except that for digital media it's a Smart Cow Problem[1], the effort is only there for the first person who wants to circumvent it, then it becomes trivial for everyone.
However, I'd suggest that the reason some on HN react strongly to these suggestions is that they rely upon security through obscurity, which can be dangerous by providing a false sense of security when none exists. While this probably isn't as big a deal when it comes to your HTML and CSS, security is a case of err'ing on the side of caution.
Adding a dependency on javascript for static content doesn't seem like a good idea to me.
It's the opposite of being fool-proof: having near zero utility while degrading the experience for everyone.