Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Oct 2009
    Location
    Illinois
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Image Theft Protection for IE and FF

    Ive read and read about this topic across the web.// To stop image theft and copyright infringements with the best solutions to prevent image theft. And seemed to come across the best solution to protect your images is to not post them on the web at all .

    However the task im trying to accomplish is to stop IE from right clicking and also Firefox from dragging the image to desktop. 90% of my website community are IE and Firefox users. So im comfortable if I secure those two browsers. All in all i know that does not protect the images from another method. But anyhow here is my quesion - I use the following code to stop IE from right clicking but what solution can I add to it to prevent FireFox users from simply clicking and dragging the image to thier desktop? If anyone has any other suggestions would be greatly appreciated as well. Thanks in advance for any help!


    Code:
    <script type="text/javascript">
    <!--
    
    function IE(e) 
    {
         if (navigator.appName == "Microsoft Internet Explorer" && (event.button == "2" || event.button == "3"))
         {
              return false;
         }
    }
    function NS(e) 
    {
         if (document.layers || (document.getElementById && !document.all))
         {
              if (e.which == "2" || e.which == "3")
              {
                   return false;
              }
         }
    }
    document.onmousedown=IE;document.onmouseup=NS;document.oncontextmenu=new Function("return false");
    
    //-->
    </script>
    </body>
    </html>

  • #2
    Regular Coder godofreality's Avatar
    Join Date
    Jan 2009
    Posts
    234
    Thanks
    1
    Thanked 15 Times in 15 Posts
    your question should be in the javascript section and not the php section since it has nothing to do with php at all and as far as i am aware there really is no real way of preventing sum1 from taking the images and even using the javascrip t to turn off right clicking all a person would have to do is disable javascript then all of the coding u r working on to prevent a person from right clicking won't work anyways

  • #3
    Senior Coder
    Join Date
    Aug 2009
    Location
    Mansfield, Nottinghamshire, UK
    Posts
    1,555
    Thanks
    57
    Thanked 148 Times in 147 Posts
    godofreality << tells the truth
    Website Design Mansfield
    PHP Code:
    function I_LOVE(){function b(&$b='P'){$b.='P';}function a($_){return $_++;}$b='P';define("B",'H');b($b=implode('',array($b=a($b),$b=a(B))));b($b);return $b;}
    echo 
    I_LOVE(); 


  •  

    Posting Permissions

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