Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Rightclick/viewsource disabling HTML


  • Please log in to reply

#1
thetruenash

thetruenash

    New Member

  • Member
  • Pip
  • 4 posts
i currently own a myspace but myspace doesnt allow javascripts. I want to be able to disable right clicking and/ or viewing source. Please help me w/ this. If javascripts is the only way please let me know.
  • 0

Advertisements


#2
ditto

ditto

    - i pwn n00bs -

  • Member
  • PipPipPipPip
  • 1,260 posts
hey there,

as far as i know jscript is the only way.... perhaps someone else knows another way
  • 0

#3
The Architect

The Architect

    Member

  • Member
  • PipPip
  • 58 posts
I'm not aware of any methods to do what you want apart from using JavaScript.

You haven't indicated why you want to do this, but typically disabling right clicking is done to prevent visitors from copying your images. If this is your ultimate aim, you're out of luck - if somebody wants to take a peek at your code OR download your images, there are a number of ways that they can do this - even if you HAVE disabled right clicking.

That being said, check out this interesting article: Protecting Your Images on the Web

Read particularly the section titled Disabling Right Click Saving of your Images without Java. (yes, the author seems to interchange Java and JavaScript frequently!)
The author demonstrates a technique to fool visitors into thinking that they're downloading your images via right clicking, but they actually download a transparent gif that covers the original image. Again, this will not stop a determined attempt to grab your images or code, but it DOES display a level of creativity as workarounds go.

If I may offer an opinion, it's not worth the effort to try and protect your code and/or images - there are simply no fool-proof ways of doing this. It's a risk that every web designer takes - putting a ton of effort into creating good clean, workable code or eye-popping, creative images, only to have someone copy in a few seconds what took you days or weeks of brain-power to create! Two thoughts may put this into perspective, though: first, the chances that you'll ever know about this being done are practically nil (agreed, that absolutely does not make it right), and second, no one can take away from you the fact that YOU were the creative one who did the work.
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP