Search code examples
cssstylesheet

using import url will it protect my css code


I've been target for someone used to copy my website style sheet so this time i would like to protect my css file using the following :-

i will create fake.css and inside it will put the following code based on @import url

@import url("css/real.css");

Now if he view source will only see the above line and will try to call

www.my_site.com/css/real.css

but i will indeed using my hosting panel will not allow direct access to files .css

Now my question, Is it save enough or still he can get the code by using firebug or whatever !? ~ thanks


Solution

  • There is no way to hide CSS from your users.