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,363
Cash: -77,174 / 11,869,762
Group: Administrator
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! sbiggrin.gif
Post Options

 
Mar 1 2006, 12:09 AM (Post #2)
I Love Jingy
* * * * * * * * *
Posts: 11,212
Cash: 2,142,701,519 / 2,147,483,647
Group: Cabinet Member
Joined: 11/30/04 08:44 PM
Heh. Sneaky.
Post Options

Mar 1 2006, 01:55 AM (Post #3)
Not Odd anymore
* * * * * * * * * *
Posts: 45,875
Cash: 1,915,578 / 1,817,041,051
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.
Post Options

Mar 2 2006, 09:53 PM (Post #4)
General
* * * * * * *
Posts: 4,936
Cash: 29,817,299 / 68,857,771
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
Post Options

Mar 3 2006, 11:31 PM (Post #5)
Not Odd anymore
* * * * * * * * * *
Posts: 45,875
Cash: 1,915,578 / 1,817,041,051
Group: Administrator
Joined: 7/10/02 09:48 PM
no wonder o_o This has a duplicate
Post Options

Mar 4 2006, 12:13 AM (Post #6)
Member Of The Year 2005
* * * * * * * * *
Posts: 10,363
Cash: -77,174 / 11,869,762
Group: Administrator
Joined: 2/28/03 10:58 AM
One normal, one Xt. Is that the problem you silly boy? stongue.gif

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.
Post Options

Apr 3 2007, 07:56 PM (Post #7)
Here for the cute boys ;)
* * * * * * * * *
Posts: 16,850
Cash: 9,336,061 / 95,912
Group: Nobility
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.
Post Options

Apr 3 2007, 09:27 PM (Post #8)
Member Of The Year 2005
* * * * * * * * *
Posts: 10,363
Cash: -77,174 / 11,869,762
Group: Administrator
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.
Post Options

Apr 4 2007, 02:23 AM (Post #9)
Not Odd anymore
* * * * * * * * * *
Posts: 45,875
Cash: 1,915,578 / 1,817,041,051
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:

Post Options

Apr 5 2007, 04:50 PM (Post #10)
Member Of The Year 2005
* * * * * * * * *
Posts: 10,363
Cash: -77,174 / 11,869,762
Group: Administrator
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 >_<
Post Options

Apr 6 2007, 01:49 AM (Post #11)
Not Odd anymore
* * * * * * * * * *
Posts: 45,875
Cash: 1,915,578 / 1,817,041,051
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.
Post Options

Apr 6 2007, 09:09 AM (Post #12)
Member Of The Year 2005
* * * * * * * * *
Posts: 10,363
Cash: -77,174 / 11,869,762
Group: Administrator
Joined: 2/28/03 10:58 AM
rip.gif well, next time suggest, do not just change an Article off your own back.
Post Options

Apr 6 2007, 08:34 PM (Post #13)
Not Odd anymore
* * * * * * * * * *
Posts: 45,875
Cash: 1,915,578 / 1,817,041,051
Group: Administrator
Joined: 7/10/02 09:48 PM
I believed it was an edit you would definitely not have a problem with.
Post Options