Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Stop taking images from the Site!!!
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

funinbc
Junior Member

245 Posts

Posted - 12 March 2003 :  18:01:15  Show Profile
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  Show Profile  Visit PeeWee.Inc's Homepage
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
Go to Top of Page

funinbc
Junior Member

245 Posts

Posted - 12 March 2003 :  18:16:54  Show Profile
Thank you !!
Go to Top of Page

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 12 March 2003 :  18:17:22  Show Profile  Visit PeeWee.Inc's Homepage
Hope it works for you ok, if not post again here

De Priofundus Calmo Ad Te Damine
Go to Top of Page

funinbc
Junior Member

245 Posts

Posted - 12 March 2003 :  18:59:06  Show Profile
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
Go to Top of Page

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 12 March 2003 :  19:02:18  Show Profile  Visit PeeWee.Inc's Homepage
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
Go to Top of Page

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 12 March 2003 :  19:06:53  Show Profile  Visit PeeWee.Inc's Homepage

<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
Go to Top of Page

funinbc
Junior Member

245 Posts

Posted - 12 March 2003 :  20:15:23  Show Profile
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?




Go to Top of Page

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 13 March 2003 :  01:55:30  Show Profile  Visit PeeWee.Inc's Homepage
you will have to edit both getimage.asp and getphoto.asp in a small way.

De Priofundus Calmo Ad Te Damine
Go to Top of Page

funinbc
Junior Member

245 Posts

Posted - 13 March 2003 :  21:36:37  Show Profile
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
Go to Top of Page

ROB
Junior Member

USA
347 Posts

Posted - 14 March 2003 :  13:11:07  Show Profile  Visit ROB's Homepage  Send ROB an AOL message  Send ROB an ICQ Message  Send ROB a Yahoo! Message
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
Go to Top of Page

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 14 March 2003 :  13:45:07  Show Profile  Visit PeeWee.Inc's Homepage
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
Go to Top of Page

funinbc
Junior Member

245 Posts

Posted - 14 March 2003 :  14:55:31  Show Profile
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 !!!!!
Go to Top of Page

Bookie
Average Member

USA
856 Posts

Posted - 18 March 2003 :  16:13:32  Show Profile  Visit Bookie's Homepage  Send Bookie an AOL message  Send Bookie a Yahoo! Message
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
Go to Top of Page

funinbc
Junior Member

245 Posts

Posted - 20 March 2003 :  13:14:48  Show Profile
sorry for asking another dumb question but are you saying that I have to change the path of each picture I want to protect?
Go to Top of Page

Bookie
Average Member

USA
856 Posts

Posted - 20 March 2003 :  13:52:17  Show Profile  Visit Bookie's Homepage  Send Bookie an AOL message  Send Bookie a Yahoo! Message
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
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07