Nov 22, 2009

Protect images from Right-click - No scripts - just a small trick

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > Designing > Web Design and HTML

Protect images from Right-click - No scripts - just a small trick

kokushta
Offen happens to see your images used in someone's website. Here is a little trick how protect them, from the right-click 'Save Image As..'

If you use tables, you can use the 'real' picture as backgroung in a cell and use a 1x1 tranparent GIF to cover it. See the code to understand.

CODE
<table width=200>
<tr><td background=mypic.jpg width=100><img src=spage.gif width=100 height=120</td><td width=100></td></tr>
<tr><td width=100></td><td width=100></td></tr>
</table>

Comment/Reply (w/o sign-up)

overture
So the way i understand it is, when the user right-click and goes to save as they will be saving the transparent gif rather than the main image. If so that is a novel idea, you come up with it yourself?

Although if someone wants it bad enough they will just screen print it. Unless you get software to stop that which i know is available.

Comment/Reply (w/o sign-up)

kelp
Hmm... is there anyone to protect other people from looking at directories and only let that page access it? Someone could view the source and find the directory the picture is located in. Yeah and that print screen is a way around it. I believe there's a watermarking program that makes a big watermark on the picture if you use print screen.

Comment/Reply (w/o sign-up)

Garthnak
Anyone who is smart can look at your source and get the image from that. There is no way to prevent it. Besides, people have to download your images to their computer anyway in order to view them in the first place - its just that their browser does it for them transparently.

Personally, I think the concerns about people stealing your images are a waste of time. If you are really worried about people stealing your data, don't put it on the Internet! Once your data is on the web, it is fair game for everyone. That's just the way things are.

Comment/Reply (w/o sign-up)

OrbitPoints
If you really wanna try to stop it create a perl script that checks referrer, if referrer is your site then print image if not then print a picture that says "Create your own pictures.". If you want an example perl script pm me. I would have to dig it up.

Comment/Reply (w/o sign-up)

kokushta
QUOTE (overture @ Sep 13 2004, 05:12 PM)
So the way i understand it is, when the user right-click and goes to save as they will be saving the transparent gif rather than the main image. If so that is a novel idea, you come up with it yourself?

Although if someone wants it bad enough they will just screen print it. Unless you get software to stop that which i know is available.
*


Yes, that would be the point.

This fact I read it in a magazine or maybe in an e-zine, as the main aim of this forum is to share, thought it would be a good thing for others to know.

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : protect, images, click, scripts, small, trick

  1. Are There Imageless, Xml Compatable Css Corners Scripts?
    (3)
  2. Scripts And Html
    (13)
    Hey /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />, In the
    note pad, I put the proper code for php ?> and save the file as name.php But i can't put
    that file in html. This is a big problem since Iam trying to make an online text based game. Whats
    the code to put a script inside a web page. And do i need any special software for it? If so
    where can i download it? Thanks for reading /biggrin.gif" style="vertical-align:middle" emoid=":D"
    border="0" alt="biggrin.gif" />.....
  3. Mixing XHTML 1.1 And iFrame
    Or how to get around using iframes for a nifty AJAX trick (10)
    Okay, first of all, I let me explain what I want to know. XHTML 1.1 does not include the IFrame
    Module, which means putting an iframe into an XHTML 1.1 page will cause errors in validation. Now,
    I know from the Modularization of XHTML Specification that it is possible to create a DTD that
    contains all of the modules of XHTML 1.1 as well as the IFrame module. However, after reading
    through said specification, I am unsure of exactly how to go about a) writing a DTD like that and
    /cool.gif" style="vertical-align:middle" emoid="B)" border="0" alt="cool.gif" /> using a DTD....
  4. A Hidden Pop-up Box With CSS Only
    A great trick I can't conduct completely (21)
    I am currently developing an online application where people will be able to store their school
    grades along with comments. I wanted to make comments look elegant, so I decided to use a hidden box
    that would appear when hovering over a certain grade. I've found a way to do it without
    JavaScript, and that is by using pure CSS and relative/absolute positioning. But that's not the
    main problem. When I hover over a grade, the normal text is covered by the box (it overlaps the
    text), but the other grades aren't. I suppose that is happening because the grades have....
  5. Two Cool Web-Design Scripts
    (1)
    hi all, While wandering in internet for getting an idea about the design of my website. I came
    across a very nice script for website title. Here i am sharing it with you guys: QUOTE var
    message = new Array(); message = ":: Sandeep Bhandari ::" var reps = 5; var speed = 100; var p =
    message.length; var T = ""; var C = 0; var mC = 0; var s = 0; var sT = null; if (reps function
    doTheThing() { T = message ; A(); } function A() { s++; if (s > 8) { s = 1;} if (s == 1) {
    document.title = '.¸.·´¯`·.¸.·´¯`· '+T+' ¸.·´¯`·.¸.·´¯`·.'; } if (s == 2) { documen....
  6. To Display Images With Links In A Rotating Sequence Without Refreshing The Page!
    how to rotate images with links in a sequence automatically without ha (0)
    hai this is my first post and i really hope someone finds it useful. i was looking for this trick
    for long and finally found out today... to rotate images in your page automatically in a sequence
    without having to refresh the page. i find it particualry useful to highlight on the home page the
    various contents inside my site. Copied from
    http://www.cgiscript.net/cgi-script/csNews...6.5787238091439 QUOTE Step 1: place the code
    below between the and tags within the HTML page where you want the random banners to appear.
    CODE                           ....
  7. Hiding/showing Text On Click
    is it possible with css/javascript (2)
    Ok, I got an question: I want to make a site with a news box or something similar. It's gonna be
    a table with a small piece of text and an "read more" button. Now I want to make it so that if
    people click on the "read more" there will appear an other piece of text underneath it. How do I do
    this? thanks in advance, -=jeroen=-....
  8. Random Images On Eacht Pageload And Refresh.
    best in plain htlm or javascript (7)
    Im looking for somethin that puts a diffrent image for each pageload/refresh. And it should be
    something that dosent need any super server technolgys like php and mysql and all that stuff.
    something that is enough just on the page and finished.....
  9. Php: How To Make A Menu With Images ?
    Help needed (6)
    i try to make a site and i know html but i don't understand php, can somebody post some
    code's? know somebody how you must make a menu in php with images at it, etx.....
  10. Help>> Fade Images
    (1)
    Hi, Im trying to find out how to fade in scaled down images when the user holds the mouse over the
    image. The image will be linking to the original image in a popup window that fits the size of the
    image, if that makes any difference. also i dont want the image to be totaly faded out before the
    user puts the mouse over, like 20% visible then when mouse over occurs it slowly goes to 100%, hope
    u can help......
  11. Help(right Click)
    (10)
    I know that similar issues have been discussed in this forum, and that someone with enough knowledge
    can get around the "right-click, View Source" issue. But I'd like to know the code to stopping
    the right click on my images, as hubby is trying to halt some of the stealing of his pictures
    online. If you could please help me with that code, I'd be really grateful.....
  12. All Images Don't Show Up When Published!
    Site looks OK when previed on computer (7)
    First attempt to publish the site didn't work to good. /sad.gif" style="vertical-align:middle"
    emoid=":(" border="0" alt="sad.gif" /> I have all the images used to test in /images/ folder and
    it's my first attempt on using CSS so it may be botched on the css level /wink.gif"
    style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> My CSS file are here at:
    style.css . I created a index.html file and uploaded it together with all the images used. In the
    #header part 1 image show up but not the other (second image show not the first). Background im....
  13. java scripts
    (2)
    If u need any kind of help in C++ java HTML perl just reply This .. I'll try my best to solve
    U.......
  14. Language files for PHP scripts
    PHPBB 2.x (2)
    Hi I wondering if there is any who might have an Swedish and an Danish language file translated for
    PHPBB ver. 2.x If you have it and would like to share it for free (With adds ofcause) the please
    add the URL to this forum. Brgds Jens....

    1. Looking for protect, images, click, scripts, small, trick

See Also,

*SIMILAR VIDEOS*
Searching Video's for protect, images, click, scripts, small, trick
advertisement



Protect images from Right-click - No scripts - just a small trick

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com