Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: How to prevent image and code copying from Javascript slideshow images

  1. #1
    Join Date
    Oct 2012
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to prevent image and code copying from Javascript slideshow images

    1) Script Title: Ultimate Fade-in slideshow (v2.4)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...nslideshow.htm

    3) Describe problem: Sorry. I posted this in another thread before reading the sticky thread there. Apologies.


    I’m not an html expert and use Frontpage2003 to design, though I’ll be uploading to a Linux server. I’m aware that even with right click disabled people can still copy images. Before I highlight my problem I want to clarify, that I don’t care about google rankings or SEO for this website, so it doesn’t matter if the code is ‘internet unfriendly’. I wouldn’t mind this particular website not being in the search engine index at all. Reason being, I only want trafic from a private advert. I don’t want casual surfers clicking and phoning, so the code can be as unfriendly as possible to search engines, no worries there. That said, I don’t want to annoy the people whom I do want to view the site, and most people are annoyed when right click is disabled.


    Basically, I want to show slideshows of images on a website. Simple fade in, fade out images very briefly, and the website viewers shouldn’t be able to stop or copy the images. I don’t want want descriptions or tags or any buttons to show, or anyhing. Just a simple image show, which automatically starts when the page is loaded, and doesn’t stop.

    I have already set the code so that on mouseover, it doesn’t pause. However, With the current setup, if you right click on the slideshow, you can still stop the image and copy it.


    I have tried some code I found on the internet for disabling right click, but I don’t want to disable all right click.


    I’d use flash and swf. files But I can’t find a free flash creator which doesn’t have a watermark or company tagline at the end in the free version? So I decided to use this code.

    Please could someone show me:
    1. How to alter this code so nobody can right click on the image and save it? Please highlight which part of the code and where I should add/change
    2. How to alter code so ‘view source’ is not visible? Is this possible?
    3. How to make it as hard as possible to copy code and images ?

  2. #2
    Join Date
    Jan 2011
    Location
    Southeastern CT
    Posts
    612
    Thanks
    46
    Thanked 32 Times in 32 Posts

    Default

    Would you consider making the site accessible only by logging in with a username and password.This way only those you supply the info to can visit it.
    Thanks,

    Bud

  3. #3
    Join Date
    Oct 2012
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Bud

    thanks for your reply. No, I don't want to do that.

    I don't mind inconveniencing search engines but i don't want to inconvenience people as I get really annoyed when i go to gimmicky sites that make you sign in.

    I just want a normal site, with a slideshow which can't be copied, or at least not easily copied. Same with code. I know that is impossible, but i want to make it as hard as possible.

    It should be easy for viewers but i don't care about search engines and rankings.

  4. #4
    Join Date
    Oct 2012
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    An't anything be added to the layer that holds the pictures in the javascript code? What about that transparent gif thing? I wish the writer of this code had automatically done that.

  5. #5
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    I don't mean to be blunt, but did you read this?

    Yes, you can make it harder. However, this is pointless: it's only "harder" for people who don't know how to defeat your precautions, and these are generally not the people who want to. To anyone who really wants your content, there is nothing to be done that is "too hard" to circumvent. You'll only make it more difficult for your legitimate users: your site will become unusable to them long before you lock out those who want to steal your content.

    (As for ajfmrf's suggestion, I don't think making someone sign in to view content is "gimmicky." If it's privileged content, it's fine to require the user to authenticate beforehand. You can persist their login (e.g., with a "remember me" cookie) if you don't want to make them do it on every visit.)

    Turning off javascript is trivial, and most times, that will completely defeat your protections. With the availability of web inspectors in modern browsers, even amateur users have a decent chance at getting your content without resorting to turning off javascript. Read through the thread I linked to for more details/discussion on this topic.

  6. #6
    Join Date
    Oct 2012
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks I know, i've read all that and similar. In fact in my first post above I said I can't deter professional theives. . To be blunt too, i didn't come here for discouragement. I'm not trying to deter professional html thiefs. I know they can take the code and images.

    I know the type who want to steal my site, and it's not a professional html person.

    Can the code above be modified to stop right click of images in the slideshow or not?

    A simple yes or no would suffice.

    Thanks in advance.

  7. #7
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    It's really a hard question to answer. The answer is no, because it's always possible to get around it. There may be ways to suggest to the browser to stop right clicking, but it's getting harder and harder to do that-- that's not something that browsers intend for users to be able to do. So I really don't know what to say about it. "Discouragement" aside, we honestly think what you're doing is something of a contradiction. But you can do it if you want.

    My suggestion, if forced to give one that would do something like this, would be to place a transparent div (or perhaps image) on top of the slideshow, unrelated to the slideshow. Then there is no way to directly access the slideshow with the mouse, and you don't need to change the slideshow code at all. Again, this will not prevent anyone from stealing it if they're motivated enough. It's much easier to break the "security" than to design it, and there's just no good solution.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  8. #8
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    right click: no.

    transparent gif: it would take some work, since the slideshow is dynamic, and will appear in front of a transparent gif in the markup.

    however, it won't be effective. it doesn't take a black-hat to find those images - since your "person of interest" apparently knows how to view source (and right-click is not the only way to do this anyway), they can see your list of slideshow images. copy, paste, and they're viewing the image directly.

    even more simply,
    Quote Originally Posted by djr33
    you can always take a screen capture.
    --------------------------------
    I'm not trying to discourage you. I'm trying to clarify why what you are asking to do is unfeasible. Ignoring the philosophical ("the internet is for free exchange of information") or ethical ("my photo belongs to me") issues, there are basic, practical truths about how the internet works:

    1. if you don't give them the content, they can't see it.
    2. if you give them the content, they have the content.

    you can't change that.

    Edit:

    on a slightly related note, you can make a small, HTTP-request-less transparent gif like so:
    HTML Code:
    <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP" width=whatever height=whatever>
    fun.
    Last edited by traq; 10-22-2012 at 08:06 PM.

  9. #9
    Join Date
    Oct 2012
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Traq and DjR33, I appreciate your responses. I apologise if i came across as cranky, Traq.

    I'm totally html ignorant.

    Sounds good. Could you or anyone else tell me what code I need to add to do what you suggested here? Do I need to add it in the layer?


    I currently have the slideshow set in this layer

    Code:
    <div style="position: absolute; right: 500px; top: 17px; width: 402px; height: 700px; z-index: 9" id="layer8">
    &nbsp;<div id="fadeshow1"></div></div>
    And I have a
    Code:
    transparentimage.gif
    somewhere in the same file which i can use. I saved a transparent gif but don't know how to use it, or code it to cover the layer. So could you tell me what to add where?

    Thanks in advance

  10. #10
    Join Date
    Mar 2011
    Posts
    2,144
    Thanks
    59
    Thanked 116 Times in 113 Posts
    Blog Entries
    4

    Default

    I'd like to suggest a different approach.
    Transparent div doesn't stop anyone from just screenshot-ing it (which is something a decent amount of people can do, very easily).

    I'd suggest instead, that you watermark your images.
    It doesn't matter then if they download them, because they can't do anything with them (unless they strip the watermark (which is very annoying to do (trust me on that))).

    If you can't, or you're not willing to, do as traq or daniel suggested (transparent div).

    If the slideshow is in this div -

    HTML Code:
    <div style="position: absolute; right: 500px; top: 17px; width: 402px; height: 700px; z-index: 9" id="layer8">
    &nbsp;<div id="fadeshow1"></div></div>
    than try adding a new div that looks like this -

    HTML Code:
    <div style="position: absolute; right: 500px; top: 17px; width: 402px; height: 700px; z-index: 9999" style=" background-color:transparent;"></div>
    It may not work.

    If your willing to get a bit more advanced, you could look into a flash or java image slideshow.
    That'd make it very tricky for non power-users (people who know their way around a computer)


    But I'd like to stress one thing: it doesn't matter how well a user knows to steal content. They can just go online and google it.

Similar Threads

  1. How to prevent Ultimate Slideshow from reverting to original image.
    By AHalsey in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 09-22-2010, 02:11 PM
  2. prevent copying/saving web pages?
    By gilsha in forum Other
    Replies: 8
    Last Post: 08-12-2005, 08:06 AM
  3. Anyway to prevent saving or copying?
    By VML in forum JavaScript
    Replies: 1
    Last Post: 01-10-2005, 05:53 PM
  4. Anyway to prevent saving or copying?
    By VML in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 01-10-2005, 05:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •