04-09-2004, 01:36 PM
|
#1
|
A Shissar Defiler
Join Date: Oct 2003
Posts: 170
|
HTML help, please!
Hello! Does anyone know how to put in a way for people to not be able to right click (thus not being able to save) files from a website? I've seen it done on other websites. What is the HTML code for it?
|
|
|
04-09-2004, 09:30 PM
|
#2
|
A Shissar Disciple
Join Date: Sep 2002
Posts: 117
|
Paste this into the <head> section of each page you want to block right-clicking on:
Code:
<script language="JavaScript">
<!--
var message="Sorry, we don't allow that on this site!.";
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->
</script>
/sheepishly waves "Hello!" as he performs a cursory run-by posting
Last edited by Garryck : 04-09-2004 at 11:31 PM.
|
|
|
04-10-2004, 07:11 AM
|
#3
|
Pale Scrawny Guy
Join Date: Sep 2003
Server: Bristlebane // Erollisi Marr
Posts: 920
|
Just FYI, anyone who turns off javascript or uses a Mac can still right click.
__________________
|
|
|
04-10-2004, 11:19 AM
|
#4
|
A Fire Beetle
Join Date: Mar 2003
Server: Mith'Marr
Posts: 2
|
Quote:
Originally posted by Inokis
Just FYI, anyone who turns off javascript or uses a Mac can still right click.
|
Good call on bringing that up - also - most of the mozillas - and Opera I think - turning of JS for just a second is pretty trivial. ( a 2 click process).
Also, most browsers (including IE) allow you to save the whole web page from File...Save As... and the java script workaround does nothing to prevent that.
Truth is - the file's ALREADY on their computer (unless they have caching off - most don't) somewhere, otherwise the browsers not rendering it. Its just a matter of keeping it there.
I have Web Development exp. going back to before it was cool, and I usually advise people that a copyright notice is the best (sadly) protection. Put one on the page, and put one in the comments (a lot of idiots are too stupid to remove the comments when they rip your info...)
If its not worth thumping them legally about it - realiistically, its not really worth getting upset about either. The web was just not designed to protect IP (neither were many previous information tansmittal services if you think about it).
So to sum up:
1) If your site has something worth saving, thats a good thing, and people are going to save it - it when they start republishing it you've got problems - and from a technical aspect, you're out of luck.
2) But it's not that bad. If you can prove real loss, you're going to at least be able to get them to remove the property (a letter to the webmaster, then if they don't play nice , the ISP/Host usually does the trick), and if its not a real loss, its not worth loosing sleep over.
With this being said however, that pop up when people right click is a really good place to put your copyright warning. Does it work great? No. Does it work better than nothing? You bet cha. Also, when ever putting a 'do not copy' clause, ALWAYS provide some sort of contact to folks can ask you how they can legally use information on your site.
Even somthing like click on the contact me link at the bottom of this page ...
|
|
|
04-10-2004, 12:45 PM
|
#5
|
A Shissar Defiler
Join Date: Oct 2003
Posts: 170
|
Thanks a lot, guys!
Worked like a charm, Garryck.
Also, I would LOVE to put a copyright warning, but I don't have a copyright on the material yet... how would I go about getting one? The main reason I'm asking all this is to protect people from "stealing" my songs off my music website. I update it daily with a new song of mine, so would I have to copyright every new song I make every time I update the site?
|
|
|
04-11-2004, 11:41 PM
|
#6
|
A Shissar Defiler
Join Date: Oct 2003
Posts: 170
|
I was also wondering, how do I make it so that when someone loads my website, there is a trail image trailing behind the cursor (like something such as sparkles, or music notes, etc.)?
Please Help.
|
|
|
04-16-2004, 01:43 PM
|
#7
|
A Ghoul
Join Date: Mar 2003
Server: Tunare
Posts: 11
|
I'm pretty sure anything you write on your website is automatically copyrighted. It's yours as long as it's original material. All you need to do is add some kind of notice that it is copyrighted material. If I'm wrong on this, someone please correct me.
|
|
|
04-16-2004, 01:53 PM
|
#8
|
Lord Dolby of Veeshan
Join Date: Jul 2002
Server: Veeshan
Posts: 2,397
|
|
|
|
04-16-2004, 01:56 PM
|
#9
|
Lord Dolby of Veeshan
Join Date: Jul 2002
Server: Veeshan
Posts: 2,397
|
Quote:
Originally posted by ÆÆÆÆ
I was also wondering, how do I make it so that when someone loads my website, there is a trail image trailing behind the cursor (like something such as sparkles, or music notes, etc.)?
Please Help.
|
Check out hotscripts.com
Just my personal opinion... I really dislike mouse trials on webpages.
|
|
|
04-16-2004, 02:58 PM
|
#10
|
Pale Scrawny Guy
Join Date: Sep 2003
Server: Bristlebane // Erollisi Marr
Posts: 920
|
there are times they can add to the page, but overall they are an annoyance. For instance on the holidays having a trail of snowflakes etc. I wouldn't suggest everyday use.
|
|
|
04-16-2004, 06:39 PM
|
#11
|
A Shissar Defiler
Join Date: Oct 2003
Posts: 170
|
Yay! The bringer of good news! thanks!
|
|
|
04-16-2004, 06:46 PM
|
#12
|
Cry Spoon!!
Join Date: Sep 2002
Server: Druzzil Ro
Posts: 137
|
the rightclick issue is np to work around even with scripting turned on... simply press and hold the right button outside the actual page area... say next to your links up top... drag the mouse in and release the button and you will get the good old menu to use... =P
CastersRealm have a new, mildly annoying thing, though... you cannot highlight stuff hehe.. oh well.. I'm sure there are ways to circumvent that too.. if not, there's always the turning off scripting =)
__________________
I don't necessarily agree with everything I think.
|
|
|
04-17-2004, 03:26 PM
|
#13
|
A Shissar Defiler
Join Date: Oct 2003
Posts: 170
|
Does anyone know how to restrict deep linking to parts of the website? (anything other than the homepage/index page)
|
|
|
04-17-2004, 08:02 PM
|
#14
|
Lord Dolby of Veeshan
Join Date: Jul 2002
Server: Veeshan
Posts: 2,397
|
Do you mean hotlinking? Head over to sitepointforums.com and do a search on hotlinking. You can use .htaccess so files can only be loaded if the referer id is of your own sites.
I do something similar with our pictures in the downloads area but its with in the php. Found lots of people using tkings class animations for their avatar and just hotlinking. So I had some fun with that.
|
|
|
04-26-2004, 08:00 PM
|
#15
|
A Shissar Defiler
Join Date: Oct 2003
Posts: 170
|
Is there a DOS command for PRINT SCREEN? (Sorry it's a bit off topic)
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|