1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to hide css online?

Discussion in 'CSS' started by webblab, Feb 15, 2008.

  1. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #21
    hmm maybe if you encrypt it in md5 hash or something like passwords.. but it's just css lol why go to the trouble it only has names of colours and fonts in, hardly sensitive data worth protecting?

    listen to everyone above you can't do it! only prevent the time it takes to view it!
     
    wd_2k6, Mar 1, 2008 IP
  2. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #22
    ^can a browser unencrypt md5 hash? If it can't, same problem as having no CSS at all. Browser sees nothing.
     
    Stomme poes, Mar 2, 2008 IP
  3. vpguy

    vpguy Guest

    Messages:
    275
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #23
    Even if you prevent people from directly downloading the CSS file (by making it a server-side script and ensuring that the referrer is from your site), it still wouldn't work because once a visitor has viewed your site, the CSS file is located in their cache and can be viewed.

    As others have said, why would you need to do this? Seems to me that JavaScript code would be something more worthy of protection. There's a thought - have the CSS file be inserted via JavaScript, and just obfuscate the JavaScript code. Even that would be far from bulletproof. There is no bulletproof way to go about it.
     
    vpguy, Mar 2, 2008 IP