Announcement

Collapse
No announcement yet.

Stop copying our images!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Stop copying our images!

    We are experiencing lots of our store images being pinched and appearing on other peoples websites.
    Can anyone advise me if any code can be added to Actinic to prevent visitors using the "right click" copy function?
    Thanks

    Tim
    www.thecakestore.com

    #2
    There is various right click disable scripts available online but no matter what you do a determined image theif will still be able to pinch your images (just by going through their browser cache). You are by far better starting to watermark your images, there are many programs available that can do this as a batch process to make it a nice quick process. A search on the forum will bring up many options as this has been covered before.
    Cheers

    David
    Located in Edinburgh UK

    http://twitter.com/mcfinster

    Comment


      #3
      There was a thread about three months ago with this problem and some novel idea's
      Chris Ashdown

      Comment


        #4
        hey there. use this bit of PHP code (saves as img.php)

        Code:
        <?php
        $image = $_GET['i'];
        $ext = substr( $img, strrpos( $image, "." );
        $extMime["jpg"] = "image/jpeg";
        $extMime["jpeg"]= "image/jpeg";
        $extMime["gif"]  = "image/gif";
        $extMime["png"] = "image/png";
        $ext = $extMime;
        session_start();
        if( isset( $_SESSION['vuser'] ) ) {
          header("Content-type: ".$ext);
          print implode("", file( $image ) );
        } else {
          print implode("", file( "nosteal.jpg" ) );
        }
        ?>
        use this to link to an image:
        Code:
        <img src='img.php?i=FILENAME' />
        also note that you will need to put this in the header of each page (PHP needed):

        Code:
        <?php session_start(); $_SESSION['vuser'] = "t"; ?>
        finally, you will need to use a mod_rewrite to redirect all image requests to this script.

        not a perfect solution, but good enough.
        ChrisL
        skype chrisjlyon

        Comment


          #5
          Post of the day thus far Chris....

          Well done sir.
          Affordable solutions for busy professionals.
          Website Maintenance | UK Web Hosting

          Comment


            #6
            its a good idea, but it has a fair few issues tht break with all the fun things i have dynamically loading on my site.

            nice idea, using sessions. but, to be quite honest, i use 'screengrab!' nowadays. and it captures images right off the canvas. no files are referenced.

            no one can stop screengrabbing.

            Comment


              #7
              yes, but the hotlinking thing is the problem usually - theft of your bandwidth basically.

              putting your semi-transparent logo in one of the corners can help (see ign.com videos for what I mean)
              ChrisL
              skype chrisjlyon

              Comment


                #8
                hot linking - i like people doing that

                stick this in your htaccess file

                RewriteEngine on
                RewriteCond %{HTTP_REFERER} !^$
                RewriteCond %{HTTP_REFERER} !yourdomain\. [NC]
                RewriteCond %{HTTP_REFERER} !google\. [NC]
                RewriteCond %{HTTP_REFERER} !search\?q=cache [NC]
                RewriteRule .*/(.*)\.gif /hotlink.gif [R,NC,L]

                then create and image with what ever you want on it, then if someone hotlinks they get the image you created instead of the one they link to

                D

                Comment


                  #9
                  oooh ment to say, if you use more than one domain point to the same url remember to add these aswell

                  D

                  Comment

                  Working...
                  X