SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2001
    Posts
    78
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Im almost done with a site ive been working on and now im ready to add some security. Ive found several java scripts that disable the right click on your mouse but I dont like this because it blocks surfers from adding to favorites. Can anyone tell me how to modify or where to find a script that will disable VIEW SOURCE, and SAVE BACKGROUND etc. but still allow surfer to add to favorites?

  2. #2
    Irritability Defined
    Join Date
    Jul 2000
    Location
    80,000 feet below the surface
    Posts
    1,442
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can't. JScript isn't flexible enough to do what you want. Besides, if people really wanted to steal your stuff they'd either :

    1. Disable JavaScript in their browsers. Then none of your scripts work.
    2. Use the 'Save As' button on their browser to save the page to their hard drive (and thus all the images, files, etc.)
    3. Use the View Source option under 'View'.
    My 2 Cents (or is that 2.2 Cents including GST?)

  3. #3
    Bored One boredboi's Avatar
    Join Date
    Jul 2000
    Posts
    238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    there's also no point.

    the web should be open and not restricted
    i wouldn't really call it security, unless its really important?

    there's little they can do that would affect you, and even if they copy your site, you can just sue them.

    Preventing people from viewing your code is irritating as it only delays and frustrates users, if they really want to view your code, nothing can stop them. If you really want to safeguard your scripts, use a sever side language.

  4. #4
    Say WHA?! goober's Avatar
    Join Date
    Sep 2000
    Location
    United States
    Posts
    1,921
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I agree whole-heartedly. The web was built specifically for open-source development. This is how many people learn. It saddens me to see this web 'avariciousness'. (P.S, for people who don't know what avarice is, look it up )

    Lend your code to others. Simply think of how you got started!
    Sean Killeen [LinkedIn] [Twitter] [Web]

    Warning: Reality.sys corrupted. Universe halted. Reboot? (Y/N)

  5. #5
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Sean, any added regard I was going to hold you in for using the word 'avarice' was lost when you warped it into 'avariciousness'.

    For the record, I'm in full agreement with the points made above!
    Kevin Yank
    CTO, sitepoint.com
    I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
    Baby’s got back—a hard back, that is: The Ultimate CSS Reference

  6. #6
    Say WHA?! goober's Avatar
    Join Date
    Sep 2000
    Location
    United States
    Posts
    1,921
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Kevin,

    dang, I knew that word would have 'reprocussions'!
    Sean Killeen [LinkedIn] [Twitter] [Web]

    Warning: Reality.sys corrupted. Universe halted. Reboot? (Y/N)

  7. #7
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    (groan) Spelling, now! You really know how to push my buttons.
    Kevin Yank
    CTO, sitepoint.com
    I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
    Baby’s got back—a hard back, that is: The Ultimate CSS Reference


Bookmarks

Posting Permissions

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