Author |
Topic |
funinbc
Junior Member
245 Posts |
Posted - 12 March 2003 : 18:01:15
|
Is there a way to prevent people form taking images from my forum? Making it so they can not download them?
This Java script might work but how do I use this on the forum?
<SCRIPT language="JavaScript"> <!-- // No rightclick script. // Find more great scripts and applets at the JavaFile! // http://www.javafile.com // Do not delete this header! var message="Sorry, we don't allow that on this site!."; // Put your message for the alert box between the quotes. // Don't edit below! 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>
Thank you !!!!!! |
|
PeeWee.Inc
Senior Member
United Kingdom
1893 Posts |
Posted - 12 March 2003 : 18:04:22
|
http://www.snitzbitz.com/mods/details.asp?Version=All&mid=63 Download the Content Display snitzbitz. Inside this you should find the files: getimage.asp getphoto.asp leecher.gif
They are the files you will need. Read the read-me.txt and it will tell you how to use it. |
De Priofundus Calmo Ad Te Damine |
|
|
funinbc
Junior Member
245 Posts |
Posted - 12 March 2003 : 18:16:54
|
Thank you !! |
|
|
PeeWee.Inc
Senior Member
United Kingdom
1893 Posts |
Posted - 12 March 2003 : 18:17:22
|
Hope it works for you ok, if not post again here |
De Priofundus Calmo Ad Te Damine |
|
|
funinbc
Junior Member
245 Posts |
Posted - 12 March 2003 : 18:59:06
|
It reads to: Place getimage.asp and getphoto.asp in the root of your website. They do not go in the forum. The root is one level above the forum. So where you place those 2 files you will see your forum folder. These files protect your avatar and photo images from being easily linked to(leeched) to save your bandwidth.
Question: I am running the Content Display but outside the forum, on my front page.
Can this work separately from the Content Display?
All I have to do is place the files in the Root and that's it? Can it really be that easy? No Coding necessary?
Will this stop people from downloading the pictures as well as linking?
Sorry I ask but things are never that easy. |
Edited by - funinbc on 12 March 2003 19:00:40 |
|
|
PeeWee.Inc
Senior Member
United Kingdom
1893 Posts |
Posted - 12 March 2003 : 19:02:18
|
It will not stop users from downliading the images, you can not stop this as all images are downloaded to the users computer when they open a page, this will only stop them linking the images. |
De Priofundus Calmo Ad Te Damine |
|
|
PeeWee.Inc
Senior Member
United Kingdom
1893 Posts |
Posted - 12 March 2003 : 19:06:53
|
<script language="JavaScript1.2">
var clickmessage="Images on this website are copyrighted."
function disableclick(e) {
if (document.all) {
if (event.button==2||event.button==3) {
if (event.srcElement.tagName=="IMG"){
alert(clickmessage);
return false;
}
}
}
else if (document.layers) {
if (e.which == 3) {
alert(clickmessage);
return false;
}
}
else if (document.getElementById){
if (e.which==3&&e.target.tagName=="IMG"){
alert(clickmessage)
return false
}
}
}
function associateimages(){
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown=disableclick;
}
if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()
</script>
This code will stop rightclicks on images (only on the images, the right click will work everywhere but the images)
Put it into a file named inc_js.asp and in inc_header.asp find:
%>
<!--#INCLUDE FILE="inc_func_common.asp" -->
<%
and make it look like this:
%>
<!--#INCLUDE FILE="inc_func_common.asp" -->
<!--#INCLUDE FILE="inc_js.asp" -->
<%
|
De Priofundus Calmo Ad Te Damine |
|
|
funinbc
Junior Member
245 Posts |
Posted - 12 March 2003 : 20:15:23
|
This worked great! Thank you !!!
Now question 2:
getimage.asp and getphoto.asp Can this work separately from the Content Display?
All I have to do is place the files in the Root and that's it? Can it really be that easy? No Coding necessary?
|
|
|
PeeWee.Inc
Senior Member
United Kingdom
1893 Posts |
Posted - 13 March 2003 : 01:55:30
|
you will have to edit both getimage.asp and getphoto.asp in a small way. |
De Priofundus Calmo Ad Te Damine |
|
|
funinbc
Junior Member
245 Posts |
Posted - 13 March 2003 : 21:36:37
|
well I did edit the files I changed:
'Test to see if we should serve the file or not If strBuffer = "funinbc.com" then
And
'They are trying to leach our file!! FilePath = "/forum/leecher.gif"
I hope this is right
I also have directories that are called smile and uploaded that I would like to protect. I have someone aready leeching my smile folder
it is still not working. what am I doing wrong
here is a link to the two files http://www.funinbc.com/getimage.txt http://www.funinbc.com/getphoto.txt
|
|
|
ROB
Junior Member
USA
347 Posts |
Posted - 14 March 2003 : 13:11:07
|
It appears that the images you want to protect need to be stored in the one directory. Any suggestions for applying this across multiple image directories? |
Jeff (ROB) Hester BigBlueNetwork | BigBlueBall | Christian Church Today |
|
|
PeeWee.Inc
Senior Member
United Kingdom
1893 Posts |
Posted - 14 March 2003 : 13:45:07
|
It should not be to hard, i will have a go as soon as i have some time (later 2night) |
De Priofundus Calmo Ad Te Damine |
|
|
funinbc
Junior Member
245 Posts |
Posted - 14 March 2003 : 14:55:31
|
sweet I look forward to the fix !!!!!
I only have 5 gb a month for traffic and I am at 2.7gb today. They charge huge if I go over.
Thanks again !!!!! |
|
|
Bookie
Average Member
USA
856 Posts |
Posted - 18 March 2003 : 16:13:32
|
I figured out the leecher.gif/getphoto.asp thingy in @tomic's Mod.
This is the important part... When you call your image, don't use the file name directly...
myimage.gif
You'll have to do it this way...
getphoto.asp?fname=myimage.gif
If you have your images in different directories, duplicate the file and change the FilePath to reflect the other folder you have additional images in and call that file (getphoto2.asp) instead.
I hope this helps. Hm, we're redesigning our site at work, maybe I'll use this! :)
Better yet, instead of using leecher.gif, you should put a path to an image on someone else's site... maybe a picture of a monkey or something ridiculous. :) You get to save your bandwidth and stick it to the leechers by giving them a picture of a monkey instead. |
Participate in my nonsense |
|
|
funinbc
Junior Member
245 Posts |
Posted - 20 March 2003 : 13:14:48
|
sorry for asking another dumb question but are you saying that I have to change the path of each picture I want to protect? |
|
|
Bookie
Average Member
USA
856 Posts |
Posted - 20 March 2003 : 13:52:17
|
quote: Originally posted by funinbc
sorry for asking another dumb question but are you saying that I have to change the path of each picture I want to protect?
Unfortunately, yes. Perhaps you can do a find/replace on the code. Replace
<img src="
with
<img src="getphoto.asp?fname=
or something like that. |
Participate in my nonsense |
Edited by - Bookie on 20 March 2003 15:30:03 |
|
|
Topic |
|