Hi
I am not sure but is it possible to stop people typing in mydomain.com/CSS and stealing all your CSS code?
I think that you can with something called .htaccess - is that applicable to CSS?
Thanks. L
No its not possible. Your
No its not possible. Your CSS needs to be freely available to allow it to be delivered to people using your site. It is possible to use obscurers to make it more difficult for people to work with your CSS. Also it is possible to restrict the sending of the CSS file based on the REFERRER value. The REFERRER value would need to come from a page on your website. This isn't a strong solution. The REFERRER value can be spoofed. Even without spoofing someone would just need to visit your site and then save the CSS file their browser retrieved for one of your pages.
Stealing Is it that
Stealing :?
Is it that good?
Generally it's not a consideration or worry, CSS has to be downloaded to the browser, CSS code is seldom unique but also tends not to be that copyable unless someone lifts all your html as well, and that is simply a risk you take.
Your right Hugo, its a risk
Your right Hugo, its a risk you take. I just figured it would be nice to have one of those .htaccess files that blocke the CSS but it doesnt matter I guess. If anything in the /* text lines tell the potential thieft what you will do if you find yout code etc blah blah.
No worries.
T H A N K S anyways
I don't honestly think CSS
I don't honestly think CSS is copyrightable.
How can you prove you are the very first person to write the code the exact way you wrote it?
I don't think any self respecting lawyer would take that case.