Jump to content

How am i to hide css source?


xcoderx

Recommended Posts

U mean with java?

 

Java != JavaScript, they are two completely different technologies. Yes, you can use Javascript to make it more difficult for someone to get the code, but...

 

As Adika stated there is no way to "hide" CSS code. The CSS has to be read by the browser which means it is first downloaded to the client PC. You could use obfuscation to make it hard to read, use javascript to prevent user from "easily" seeing the CSS references in the HTML, and other hacks. But, all you will accomplish is pissing off many of your users without providing any real security. Because those hacks will also prevent users from using simple functions such as printing via right-click. And, anyone with the abilty to know how to repurpose someone else's CSS would be able to find the CSS file in their cache and find a way to un-obfuscate the code.

Link to comment
Share on other sites

Agreed but sometime back i made a template fa my xhtml wap enable site and now alot of people using it by stealing my design.

Welcome to the Internet. Use a php file for CSS definition and encrypt it using ioncube. Personally though I wouldn't be bothered.

Link to comment
Share on other sites

Agreed but sometime back i made a template fa my xhtml wap enable site and now alot of people using it by stealing my design.

Welcome to the Internet. Use a php file for CSS definition and encrypt it using ioncube. Personally though I wouldn't be bothered.

 

ioncube is for obfuscating PHP, not CSS. Using obfuscated PHP to create the CSS is pointless for what the OP wants as the souce code would be obfuscated but the rendered CSS that is sent to the browser wouldn't be. A littel googling turned up a few products that may be able to obfuscate CSS, but they don't exactly look to be top-of-the-line outfits, or at least none that I would trust the integrity of my code to. I agree, it would just be a PITA to try and obfuscate CSS.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.