Any code to hide style.css link

Started on the old forum in December 2009 · view the original in the archive · old links redirect here

74 replies · 3,682 views · started 16 years ago · 1 min read

TL;DR · summary of 74 replies
  • - CSS cannot be fully protected from those who know how to look at it.
  • - The only practical method mentioned was hiding the CSS file by changing its name or moving it out of the public directory, which is not a foolproof solution.
  • - Some suggested using PHP Encoder for obfuscating PHP scripts but noted that this does not protect CSS files.
  • - No clear code approach or example was provided to hide CSS.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

28 participants
sladex Developer · 232 posts #21

opticalpigion wrote: dont u think so its useless ? http://upmusic.info/style.css

ok if ur url is /css/style.css ! then u have to share with us where u have use this css too.!

all i can say is.. just ignore all this.. like amylee said before make another better theme

If you say that, please find my css file with css codes 🙂 that was my WEB page css, now in css is just BODY color, nothing else 😉 find it 🙂 with codeeeeeee 🤨

why you need make everytime new css when someone copy???? Sorry, its other ways to protect it. Make a copyright of it, pay money for it. And is you see someone using give it to court 😐

arnage Lead · 811 posts #22

sladex wrote: If you say that, please find my css file with css codes 🙂 that was my WEB page css, now in css is just BODY color, nothing else 😉 find it 🙂 with codeeeeeee 🤨

Bro, where is your CSS designed XHTML page? I think that someone here dont understand the term "protected CSS file". 🙂

Authors can register here but its not a law company...

Creative Commons

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
metulj Super moderator Principal · 1,726 posts #23

sladex wrote: First of all i sad something can save your css from NOOB. You are not noob.

Try this: http://upmusic.info/css/

there isnt any css file at all... so theres nothing protected..🤨

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

arnage Lead · 811 posts #24

With this the CSS file cant open mobile browser:

RewriteEngine on 
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?site.tld [NC] 
RewriteRule \.css$ - [NC,F,L]
<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
ranzit2 Developer · 187 posts #26

opticalpigion wrote: i think if we protect source sode to be viewed then that will protect everything. i mean if leechers cant find true path to css then there will not be anyoption to steal css stylesheet. here is software for it. PHP Encoder, protect PHP scripts with SourceGuardian including bytecode compiling and obfuscation

it protect php and the html output will be same.it wont protect css .and if u obfuscation html ,it will not validate.i guess so.

she is beautifull than php.and i love her more than php.

modfiles Developer · 200 posts #28

opticalpigion wrote: http://wap.bollywoodjalwa.com/test.php

if you using firefox, press ctrl+u and it shows encoded source but if you press ctrl+f and input .css and i found this http%3A//bollywoodjalwa.com/css/orkut_small.css

and almost every link in page wass displayed and that doesnt save the link of css.

There is also a addon for firefox called webdeveloper which show a css tab. clicking show css will show the css obviously 🙂

opticalpigion Lead · 593 posts #29

modfiles wrote: if you using firefox, press ctrl+u and it shows encoded source but if you press ctrl+f and input .css and i found this http%3A//bollywoodjalwa.com/css/orkut_small.css

and almost every link in page wass displayed and that doesnt save the link of css.

There is also a addon for firefox called webdeveloper which show a css tab. clicking show css will show the css obviously :)

i just showed that its possible to encrypt source too.

arnage Lead · 811 posts #30

opticalpigion wrote: i just showed that its possible to encrypt source too.

Ok for XHTML, but CSS cant be encrypted. Like this for example:

<?php

include 'code_soft.php';

if (strpos($_SERVER['PHP_SELF'],'blabla.php')) exit();
header('Content-type: text/css');
header('Cache-Control: no-cache, must-revalidate');
?>

CSS Codes...

... it wont work. 🙂

CSS file even if its hiden from FireBug or something like that, and still it has to stay in browsers cash to be displayed... So, there is no way to protect CSS file...

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
metulj Super moderator Principal · 1,726 posts #31

opticalpigion wrote: http://wap.bollywoodjalwa.com/test.php

body {background-color: #FFFFFF; color: #000000; font-family : Verdana, Arial, Helvetica, sans-serif;margin: 0px; padding: 2px; max-width: 550px;
                  margin: 3px auto; 
                  text-align :left;
                                }

a:active  {color: #3300CC;}
a:visited {color: #3A5992;}
a:hover {color: #990000;}

div {margin: 0px 0px 0px 0px; padding: 2px 0px 2px 0px;color: #000033;font-size: small;}
a.altlink:hover {color:#990000;font-size: small; }
a.altlink {color: #000;margin: 2px 0px 2px 0px; font-size: 10pt; padding: 2px 0px 2px 0px;}.main {background-color: #FFFFFF; color:#000;padding: 2px 0px 2px 0px; font-size: 10pt; }

😊

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

arnage Lead · 811 posts #33

Nope, stealing the CSS file is stupid... 🙂

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
metulj Super moderator Principal · 1,726 posts #35

ranzit2 wrote: disabling javascript shows nothing and as i said it dont protect css and this source will not validate.

you got *.css for posted link... i've stole it just to prove my point... *.CSS just can't be protected..😊

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

opticalpigion Lead · 593 posts #36

first of all.. i made demo only to show that its possible to encrypte source too anyways now u can check that demo again and tell me if u can find that 😛

metulj Super moderator Principal · 1,726 posts #37

opticalpigion wrote: first of all.. i made demo only to show that its possible to encrypte source too anyways now u can check that demo again and tell me if u can find that :p

like i said.. so far, theres no way to hide/protect *.css properties against design theft... it is simply impossible.. even if you encode PHP code 8)🤨

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

huwad Developer · 215 posts #38

metulj wrote: theres NO way to hide CSS from someone who know how to look at it... but then again.. someone who actually know how to look it, most likely aint gonna copy your style🤨

agree.. ehehe.. just view the source look for <style></style> or .css

hacking is like sex. you get in, you get out and you pray you left nothing behind.

ranzit2 Developer · 187 posts #39

opticalpigion wrote: first of all.. i made demo only to show that its possible to encrypte source too anyways now u can check that demo again and tell me if u can find that :p

k i understand u nw. U are explaining how to hide source code.but topic was about css.i think css cant be protected.or say can be protected from some noob,newbie who easily give up,but not from all.and the encoder,obfuscated pages are having javascript which will show page blank on old phones which dont support it. will chk ur link from pc later.

she is beautifull than php.and i love her more than php.

blockerhead Junior · 36 posts #40

arnages wrote: I get to this over a yaer ago... If someone can get idea please share.

.htaccess file inside cant work in my hosting.

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close