stealing css code

liunx

Guest
Is it possible to secure stylesheets so that someone doesnt just read your HTML source and then Download your hard worked stylesheet code?

EddieBenton (<!-- m --><a class="postlink" href="http://www.eddiebenton.co.uk">http://www.eddiebenton.co.uk</a><!-- m -->) Eddie BentonThere are a few encryption tools which will encrypt your stylesheets, but this will result in anyone who does not have javascript running losing all your styles.

As a general rule it's pointless trying to protect anything on the web - there are always ways around it.


You could just put

@import url(real.css);

at the top of your stylesheet and move all your code in there. It seems that fewer people know where to look once you do that, and the ones that do wouldn't want your code anyway!I'm a proponent of using server side browser detection to send an adjusted stylesheet.
There is a default stylesheet written to W3C specs that is sent to Gecko based browsers, Opera and any other that is not identified, and then there are stylesheets for IE6.0 that takes care of IE deficiencies, IE5.5 that accounts to the wrong box model and so on (as far as you want to extend your support) to NN4.* where I send no styles at all.
Not only it makes my life easier, since I prefer this method to incorporating browser hacks in one stylesheet, it makes stealing the layout much harder.There's nothing that precious about either CSS or standard XHTML syntax and I wouldn't care if anyone looked at the code as long as they gave credit or didn't misuse the information to try and replicate the entity as a whole.

I could do anything Eric Meyer could with CSS starting from sratch the only difference is he is savvier with thinking of new CSS applications.
 
Back
Top