#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Posts
    132
    Rep Power
    12

    disable user from viewing css source


    anyway to disable a user from viewing your css source? not particular for me but, i think there might be a way with php in the css file, but it still displays the code when i go to the file
  2. #2
  3. Thanks Johnny Hart (BC) R.I.P.

    Join Date
    May 2003
    Location
    Dallas
    Posts
    5,268
    Rep Power
    1956
    Just like HTML, the browser must see the CSS. If the browser can see it, so can your visitor. You can hide your PHP source (and it would be a poorly configured web server that served up unprocessed source code), but obviously not its output.

    Just out of curiosity, why would anyone care to hide style rules?

    gary
    There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing.

    My html and css workshop, demos and tutorials.
    Ask a better question, get a better answer.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Posts
    61
    Rep Power
    11
    Originally Posted by kk5st

    Just out of curiosity, why would anyone care to hide style rules?

    gary

    One word comes to mind ...

    idiocy

IMN logo majestic logo threadwatch logo seochat tools logo