It appears you have not yet registered with our community. To register please click here.

Origin XT RPG Network Home






XT Project Introduction
Blah blah intro to this place. To be composed later.

HTML - Stop People Stealing Your Images


Feb 28 2006, 06:50 PM (Post #1)
Member Of The Year 2005
* * * * * * * * *
Posts: 10,168
Cash: -14,781 / 8,672,713
Group: Cabinet Member
Joined: 2/28/03 10:58 AM
Found out a neat trick that allows you to keep your images hidden.

CODE
<table border="0" cellpadding="0" cellspacing="0" background="XURL" class="blank"><tr><td><img src="YURL" border="0" width="Z1" height="Z2"></td></tr></table>


Simply replace:

XURL = your image (replace with the url)
YURL = a blank image (replace with the url)
Z1 = your image width (replace with number)
Z2 = your image height (replace with number)

and obviously replace all the other numbers with your specifications.

And there you have it. Instead of a simple picture that anybody could right-click and save, you now have a picture with another blank picture on top of it. Viewers can see your image, but can't right click it. If they try, they will just save the blank image. Most would be too confused to try to figure out what went wrong, although a simple look at your page source would discover what happened. There are many ways to deter even this, such as URL redirecting, adding in spam code to confuse, but that is for another article.

I am even so kind I have included a blank image that you can use on top of your images, and an example of how this actually looks below:

Blank Image (Right Click --> Save As. Do not hotlink!)

Working example of the code.

Enjoy, experiment, and have fun with this! :D

 
Mar 1 2006, 12:09 AM (Post #2)
I Am Legend
* * * * * * * *
Posts: 9,894
Cash: 114,834 / 324,996
Group: Cabinet Member
Joined: 11/30/04 08:44 PM
Heh. Sneaky.

Mar 1 2006, 01:55 AM (Post #3)
The President of China
* * * * * * * * * *
Posts: 44,348
Cash: 5,236,022 / 1,578,945,750
Group: Administrator
Joined: 7/10/02 09:48 PM
Actually, if you click save background as, that is bypassed. Or you can go to source to look at the URL of the image. Lots of ways.

Mar 2 2006, 09:53 PM (Post #4)
the faint impression of a past
* * * * * * *
Posts: 4,215
Cash: 54,454 / 3,252
Group: Representative
Joined: 11/26/02 02:31 AM
Though it is useful for warding off the general masses who don't know about that

Good idea, GJ

Mar 3 2006, 11:31 PM (Post #5)
The President of China
* * * * * * * * * *
Posts: 44,348
Cash: 5,236,022 / 1,578,945,750
Group: Administrator
Joined: 7/10/02 09:48 PM
no wonder o_o This has a duplicate

Mar 4 2006, 12:13 AM (Post #6)
Member Of The Year 2005
* * * * * * * * *
Posts: 10,168
Cash: -14,781 / 8,672,713
Group: Cabinet Member
Joined: 2/28/03 10:58 AM
One normal, one Xt. Is that the problem you silly boy? :P

QUOTE (Sothiamient @ Mar 2 2006, 09:53 PM)
Though it is useful for warding off the general masses who don't know about that

Good idea, GJ
*



Danke. There are tonnes of ways to bypass it, but as with most of these things, it serves as a deterrent - those with less knowledge or not much of a motivation will be sufficiently put off.

Apr 3 2007, 07:56 PM (Post #7)
Former President of Taiwan
* * * * * * * * *
Posts: 14,387
Cash: 3,197,794 / 95,912
Group: Administrator
Joined: 5/08/05 04:11 AM
How about a watermark? Those work well, although they kind of make the image look a bit uglier.

Apr 3 2007, 09:27 PM (Post #8)
Member Of The Year 2005
* * * * * * * * *
Posts: 10,168
Cash: -14,781 / 8,672,713
Group: Cabinet Member
Joined: 2/28/03 10:58 AM
Precisely, watermarks just make the image look uglier and are relatively easy to remove, even using something as basic as Paint. I'd rather stop you getting the image in the first place.

Plus, this stops people hotlinking. If they right click and go to "Copy Image Location", they will be copying the empty image, a much smaller file to be hotlinking to than the original file. So, if you have something that people may hotlink on various message boards (such as a leaked image from the new Naruto movie or something like that) this will stop leechers bringing down your bandwidth.

Apr 4 2007, 02:23 AM (Post #9)
The President of China
* * * * * * * * * *
Posts: 44,348
Cash: 5,236,022 / 1,578,945,750
Group: Administrator
Joined: 7/10/02 09:48 PM
I edited the post to fix HTML errors. I do have a more elegant and simpler way of achieving the same ends, using a DIV instead of table elements:
CODE
<div style="width:Z1px;height:Z2px;background:url(XURL)"></div>


Example:


Apr 5 2007, 04:50 PM (Post #10)
Member Of The Year 2005
* * * * * * * * *
Posts: 10,168
Cash: -14,781 / 8,672,713
Group: Cabinet Member
Joined: 2/28/03 10:58 AM
Hmm, with your example I do not get a save image as, but I do get a save background image as which saves the Garfield image.

Also, what did you change to my post? Please don't edit Articles once they have been published without talking to me first >_<

Apr 6 2007, 01:49 AM (Post #11)
The President of China
* * * * * * * * * *
Posts: 44,348
Cash: 5,236,022 / 1,578,945,750
Group: Administrator
Joined: 7/10/02 09:48 PM
QUOTE (Garlic Junior @ Apr 5 2007, 09:50 AM)
Hmm, with your example I do not get a save image as, but I do get a save background image as which saves the Garfield image.

Also, what did you change to my post? Please don't edit Articles once they have been published without talking to me first >_<
*


That is browser-specific. You are using the image as a background in tables too, so the option should be there. If it is there for my option, then just add in the blank image.

I changed the HTML code: compare it to your "sample". Your demonstration is wrongly coded.

Apr 6 2007, 09:09 AM (Post #12)
Member Of The Year 2005
* * * * * * * * *
Posts: 10,168
Cash: -14,781 / 8,672,713
Group: Cabinet Member
Joined: 2/28/03 10:58 AM
:rip: well, next time suggest, do not just change an Article off your own back.

Apr 6 2007, 08:34 PM (Post #13)
The President of China
* * * * * * * * * *
Posts: 44,348
Cash: 5,236,022 / 1,578,945,750
Group: Administrator
Joined: 7/10/02 09:48 PM
I believed it was an edit you would definitely not have a problem with.