/    Sign up×
Community /Pin to ProfileBookmark

Protecting my css sheets.

Has anyone thought of a way to stop css theft? I want to protect my sheets. I’m sick and tired of people taking my work instead of putting in the wrench time.

Any ideas?

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@David_HarrisonJul 24.2003 — What you could do is write your code and when you get it how you like it, make a back up copy and then remove all of the structure so as to make harder to read, and even through in some dummy rules that will be over-ridden later on:

div#a{display:inline;width:100px;color:#fb7;}

div#b{display:block;position:absolute;top:16px;}

becomes:

#a, #b{

display:block;

display:none;

display:inline;

}


#b{

position:fixed;

position:absolute;

display:block;}


#a{


width:100px;

color:#fb7;}

#b{top:16px;}

This will take some time to encode when you have a lot of style's, but it will take decades to decode.
Copy linkTweet thisAlerts:
@nkaisareJul 24.2003 — Probably some server-side rule that allows access to the directory containing css file only if its called by another file on your server, not otherwise.
Copy linkTweet thisAlerts:
@DaveSWJul 25.2003 — There are a few points I would like to add:

1) What's so special about your css that makes everyone want to pinch it?

2) It is possible to encrypt a css file as javascript using the following:

http://www.htmlpassword.com/websp/index.html

however, you are then left in the situation where 13% of your viewers see your pages without style sheets, because the encrypted file has to be saved as a .js file.

Dave
Copy linkTweet thisAlerts:
@Robert_WellockJul 25.2003 — You are all welcome to steal all my CSS but if you don't give me credit, or decide to do a full ripping-off I'll set Cerberus onto you.
Copy linkTweet thisAlerts:
@DaveSWJul 25.2003 — LOL. emmm, I wonder if any of the hacks I use originated with you... LOL
×

Success!

Help @J_C_ spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...