Protected CSS on website? [closed]
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this questionI've been开发者_运维问答 trying to view the file master.css over at http://www.campaignmonitor.com/ but for some reason I can't. Is it protected? I even tried using Firebug but even that refuses to display it. Is there some kind of protection for CSS in here we don't know about?
It is not protected, the file is simply empty. If you inspect the response header, you will find this:
HTTP/1.1 200 OK
Accept-Ranges: bytes
Cache-Control: max-age=86400, public
Content-Type: text/css
Date: Wed, 17 Aug 2011 19:32:34 GMT
ETag: "2bf639-0-495dab735ad00"
Last-Modified: Thu, 25 Nov 2010 06:28:36 GMT
Server: ECS (lhr/D38A)
X-Cache: HIT
Content-Length: 0
Note the last line. The Content-Length
[Wikipedia] is 0
.
Since Firebug can't find any rules from that stylesheet being applied onto anything, I suspect that stylesheet is in fact totally empty. Bear in mind that that's not the only file being linked to for styles; there are others.
The master.css file is indeed empty.
The Chrome Webkit Inspector gives me theses urls for the css used:
- http://i2.campaignmonitor.com/min/?g=screen&1303274490
- http://i2.campaignmonitor.com/min/?g=home&1285746846
- http://i2.campaignmonitor.com/min/?g=print&1219642618
- http://i3.campaignmonitor.com/themes/site_themes/default/css/master.css
Maybe its an empty file.
The only way I know to protect is to deliver a CSS by PHP and check for referrer. Empty or wrong referrer leads to an empty file on the client-side. So if you try to load the styles not in context of the website, you would see nothing. You can also check for browser type and deliver the appropriate styles.
The css file is just empty.
You can't protect a css file. If so; how would your browser know how to render it?
I don't think it is any kind of protection. It looks like a mistake to me. The master.css file looks blank for some reason. The styling is coming from the other CSS files (http://i2.campaignmonitor.com/min/?g=screen&1303274490, http://i2.campaignmonitor.com/min/?g=home&1285746846, http://i2.campaignmonitor.com/min/?g=print&1219642618).
It has the best protection there is The file is empty. :-)
It's just an empty file... Theres nothing to see...
Check this out:
精彩评论