Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Apr 2011
    Posts
    76
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Denying Access to CSS ~FTP Help

    Hi guys, i've seen websites around where if i go into the source code, and in mozilla you can click straight through to the CSS, something disables this and says you are not allowed to view this CSS.

    How would i do this??

    jonny1990

  • #2
    Regular Coder
    Join Date
    Apr 2011
    Posts
    286
    Thanks
    2
    Thanked 39 Times in 39 Posts
    Could be one of two things, either it checks the referral (risky), or you are talking about it blocking you from right clicking the page and going to view source, which you can get around that.

    The right click thing is a simple javascript code that some websites use, but typically it looks 'cheap'.

    Really, you shouldn't be trying to hide anything, cause its not possible to truly hide it. If the browser can read it and get it, then a user can as well.

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Quote Originally Posted by jonny1990 View Post
    Hi guys, i've seen websites around where if i go into the source code, and in mozilla you can click straight through to the CSS, something disables this and says you are not allowed to view this CSS.

    How would i do this??

    jonny1990
    Post the websites you've seen and we will tell you what they are doing.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •