WordPress.org

Ready to get started?Download WordPress

Forums

Protect CSS Files (8 posts)

  1. alvanweb
    Member
    Posted 8 years ago #

    Is there any way to prevent surfers to download and view my .css (Style Sheets) files on my server?
    How i protect my design from theft?

  2. Mark (podz)
    Support Maven
    Posted 8 years ago #

    I used to play around with scripts that would encode ( http://downloads-zdnet.com.com/HTML-Page-Guardian/3000-2181-10388981.html ) but the hassle involved was just daft so I gave up :)

    A copyright notice is good enough - after all, even with the above they could recreate it using their own css.

  3. jalenack
    Member
    Posted 8 years ago #

    Podz, are you kidding me? those things are the biggest bunch of garbage ever.

    Anyways, there's no real way to protect anything on the web. Period. However, you can make it *difficult* and not worth the time.

    Here's what I'd do:

    http://www.cssdrive.com/index.php/main/csscompressor/

    And run your css through that on super-compact mode. That'll make your css pretty unreadable...

  4. Mark (podz)
    Support Maven
    Posted 8 years ago #

    jalenack - this was years ago :)

  5. Mark (podz)
    Support Maven
    Posted 8 years ago #

    The compressor there is very similar to the tool at flumpcakes.
    So even though you compress your css to be tricky to read, if someone runs it through flumpcakes, it makes it all 'pretty print' again.

    Guess the answer is no...

  6. alvanweb
    Member
    Posted 8 years ago #

    Do you mean what you say?
    these words mean no exist way or you don't know the answer?
    we can't encrypt or encode .css files contents with php encrypt function or other programming languages?

  7. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Let's say there was .. then everyone would do it, and you and I would have been unable to learn CSS by looking at how others achieved certain designs.

    For a browser to display the page, it has to read the css file. It then has to turn that - if you have encoded it - into something it can understand, OR the server first has to decode the file and send that to the browser.
    But once it's in the browser, the user can manipulate that. It's the way the web works. You could make it trickier for the average person to find / download but if someone wants to take it, they will.

    Put a copyright notice in it.
    Having said that, there have been discussions...
    http://wordpress.org/support/topic/35557
    http://wordpress.org/support/topic/38024

  8. alvanweb
    Member
    Posted 8 years ago #

    -Thanks podz
    this is quite. your statements is completely verity.
    I think the best way for these problems is just convince ourself by Copyright rules.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.