Page 4 of 4 FirstFirst ... 234
Results 31 to 39 of 39

Thread: Complete Web-Graphics Protection Script [Contest]

  1. #31
    AO übergeek phishphreek's Avatar
    Join Date
    Jan 2002
    Posts
    4,325
    /me goes makes a flash file that loads 6,000,000 images all labeled pic0000001.jpg, pic0000002.jpg etc hiding 5,999,997 and only displaying needed 3 - might be a lil heavy on bandwith tho
    but you'd have fun trawling thro finding right 3 - lol
    You're right about that! In that case... I'd use use a print capture.

    I'd take forever to figure out which are the right pictures... not to mention how long it'd take to load.

  2. #32
    Senior Member
    Join Date
    Aug 2003
    Posts
    300
    Alright, I wanna get in on this contest. I have looked at the photo for a little bit and it is pretty good. I mean, besides the 30 second print screen possibility ..

  3. #33
    Junior Member
    Join Date
    Jul 2003
    Posts
    24

    Ooops...

    Hi all,

    yes, Drunk on Duvel is right, but 95% and not the whole 100, the files are
    mexRed.jpg
    MexBlue.jpg
    mexGreen.jpg

    but the path is wrong, there is no /img/ folder at all .

    Thank you all for trying the thing because i really learned more ways to do things, i will now tell you how this thing works, if you are interested of course .

    The whole trick is made with two PHP files, one is the preview.php and the other is img.php, i added a couple of lines to the .htaccess file like this ...

    RewriteEngine On
    RewriteRule ^/preview/(.*)/(.*) /preview.php?folder=$1&image=$2 [L,PT]
    RewriteRule ^/preview / [L,PT]
    RewriteRule ^/img/(.*)/(.*) /img.php?folder=$1&image=$2 [L,PT]
    RewriteRule ^/img / [L,PT]

    and here are the .PHP files source code, please notice that for you not to make my mistake, you can make a simple check in them to check if the browser is a known grabber, and redirect him to www.disny.com for example ;-)

    preview.php
    PHP Code:
    <?php
    /*
                This is a sample script that will read the image file and return it as binary data
                some kind of safe image storage and display... ;-)

                Weedday 10/6/2003 2:14 AM
    */

    //     Get The Query String

    $folder            =            $HTTP_GET_VARS['folder'];
    $image            =            $HTTP_GET_VARS['image'];


    //     Was A Folder Specified ?
    if (($folder == "") || (!$folder))
    {
        
    $folder                =            "";
    }


    //     Was An Image Specified ?
    if (($image == "") || (!$image))
    {
        
    $image                =            "default.jpg";
    } else {
        
    //     Check it and get its size
        //     We have an image string passed, lets get its extension
        
    if ((file_exists($folder "/" $image ".GIF")) || (file_exists($folder "/" $image ".gif")))
        {
            
    //     There is a GIF version
            
    $theImage                        =                $folder "/" $image ".gif";
        } elseif ((
    file_exists($folder "/" $image ".JPG")) || (file_exists($folder "/" $image ".jpg")))
            {
                
    //     No, There is a JPG Version
                
    $theImage                        =                $folder "/" $image ".jpg";
            }
    }



                    
    //     Do we have a valid image string ?
                    
    if (($theImage == "") || (!$theImage))
                    {
                        
    //     Set A Default File To Open
                        
    $default                =            "default.jpg";
                        list(
    $width$height$type$attr) = getimagesize("default.jpg");
                    } else {
                        
    //
                        
    $default $theImage;
                        list(
    $width$height$type$attr) = getimagesize($theImage);
                    }


    $default $folder "/" $image;



    echo                    
    "
                                        <html>
                                        <head>
                                        <meta http-equiv=\"Content-Type\" content=\"text/html\">
                                         <link rel=\"shortcut icon\" href=\"/favicon.ico\" type=\"image/x-icon\" />
                                         <link rel=\"stylesheet\" href=\"/style.css\" type=\"text/css\" />
                                        <title>phpX(c) Secure Image Viewer</title>
                                        </head>
                                        <body>
                                        <p align=\"center\"></p>
                                        <p align=\"center\"></p>

                                        <div align=\"center\">
                                          <center>
                                          <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border: 2 groove #639ACE\">
                                            <tr>
                                                <td width=\"100%\" background=\"/img/
    $default\">
                                                    <div id=\"img
    $image\" style=\"position:relative; left:0; top:0; width:$width; height:$height; clip:rect(0,0,0,0); z-index:50; visibility:visible; overflow:hidden;\">
                                                    <img src=\"/transparent.gif\" 
    $attr />
                                                    </div>
                                                </td>
                                            </tr>
                                          </table>
                                          </center>
                                        </div>
                                        



                                        <center>
                                        <p align=\"left\"  style=\"width:50%\" class=\"SpecialContent\">
                                        <span class=\"CodeTableX\">[b]Can you tell what is the real extension of this image ? PNG? GIF? JPG?[/b]</span>


                                        Script By: <a href=\"http://www.ereg.info/\">eReg(c) Internet Services</a>, [size="
    1"]<a href=\"http://www.ereg.info/\" target=\"_blank\">[popUp]</a>[/size]

                                        Discuss it at <a href=\"http://www.xui.info/viewtopic.php?t=13\">XUI(c)</a> forums or <a href=\"http://www.antionline.com/showthread.php?s=&threadid=249384\">AntiOnline&trade;</a> Community
                                        </p>
                                        </center>
                                        </body>
                                        </html>


                            "
    ;
    ?>


    img.php
    PHP Code:
    <?php
    /*
                This is a sample script that will read the image file and return it as binary data
                some kind of safe image storage and display... ;-)

                Weedday 10/6/2003 2:14 AM
    */


    //        First Thing is check if this file has a referal, if not then this is a direct access, we refuse it ;)
    function is_valid_referal()
    {
        global 
    $HTTP_SERVER_VARS;

        
    $allowed_domains        =        Array("phpx.info""ereg.info""xui.info");


       foreach(
    $allowed_domains as $value)
        {
           if(
    strstr($HTTP_SERVER_VARS['HTTP_REFERER'], $value))
               return 
    1;
        }
    }


    if (
    is_valid_referal() == 0)
    {
            
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); 
            
    header("Last-Modified: " gmdate ("D, d M Y H:i:s") . " GMT");
            
    header("Cache-Control: no-store, no-cache, must-revalidate"); 
            
    header("Cache-Control: private, no-cache, post-check=0, pre-check=0"false); 
            
    header("Pragma: no-cache");
            
    header("HTTP/1.1 301 Moved Permanently");
            
    header("Location: /preview/$folder/$image");
            
    header("Connection: close");
    } else {
        
    //        We have a valid referal, go display the image !!


                    //     Get The Query String
                    
    $folder            =            $HTTP_GET_VARS['folder'];
                    
    $image            =            $HTTP_GET_VARS['image'];

                    
    //     Was A Folder Specified ?
                    
    if (($folder == "") || (!$folder))
                    {
                        
    $folder                =            "";
                    }

                    
    //     Was An Image Specified ?
                    
    if (($image == "") || (!$image))
                    {
                        
    $image                =            "default.jpg";
                    } else {
                        
    //     We have an image string passed, lets get its extension
                        
    if ((file_exists($folder "/" $image ".GIF")) || (file_exists($folder "/" $image ".gif")))
                        {
                            
    //     There is a GIF version
                            
    $theImage                        =                $folder "/" $image ".gif";
                        } elseif ((
    file_exists($folder "/" $image ".JPG")) || (file_exists($folder "/" $image ".jpg")))
                            {
                                
    //     No, There is a JPG Version
                                
    $theImage                        =                $folder "/" $image ".jpg";
                            }
                    }

                    
    //     Do we have a valid image string ?
                    
    if (($theImage == "") || (!$theImage))
                    {
                        
    //     Set A Default File To Open
                        
    $default                =            "default.jpg";
                    } else {
                        
    //
                        
    $default $theImage;
                    }






                    
    //  Check The Image And Send It Back To The User
                    
    if (!file_exists($default))
                    {
                        
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); 
                        
    header("Last-Modified: " gmdate ("D, d M Y H:i:s") . " GMT");
                        
    header("Cache-Control: no-store, no-cache, must-revalidate"); 
                        
    header("Cache-Control: private, no-cache, post-check=0, pre-check=0"false); 
                        
    header("Pragma: no-cache");
                        
    header("Location: /");
                    } else {
                        
    //     Pass The File Content Through....
                        
    if (strstr("gif"$default))
                        {
                            
    //     This is a GIF image
                            
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); 
                            
    header("Last-Modified: " gmdate ("D, d M Y H:i:s") . " GMT");
                            
    header("Cache-Control: no-store, no-cache, must-revalidate"); 
                            
    header("Cache-Control: private, no-cache, post-check=0, pre-check=0"false); 
                            
    header("Pragma: no-cache");
                            
    header'Content-type: image/gif' );
                        } else {
                            
    //     This is a JPEG Image
                            
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); 
                            
    header("Last-Modified: " gmdate ("D, d M Y H:i:s") . " GMT");
                            
    header("Cache-Control: no-store, no-cache, must-revalidate"); 
                            
    header("Cache-Control: private, no-cache, post-check=0, pre-check=0"false); 
                            
    header("Pragma: no-cache");
                            
    header'Content-type: image/jpeg' );
                        }

                        
    $file            =        $default;
                        
    $hd            =        fopen($file,'rb');
                        
    fpassthru($hd);
                        
    fclose($hd);
                    }


    }



    ?>


    again, I enjoyed it, thanks all, hope you also did !!!
    Ruslan K. Abu Zant
    eReg(c) Internet Services
    http://ereg.info/ | http://gold-directory.com/ | http://xui.info/

  4. #34
    I am sorry, but I am not impressed by any image protection script, and none that I have come across have worked, and this my friend, does not work.

    As Tedob1 said, if you do not want your **** stolen, do not place it on the web.

    and here are the .PHP files source code, please notice that for you not to make my mistake, you can make a simple check in them to check if the browser is a known grabber, and redirect him to www.disny.com for example ;-)
    rofl, there are a lot of grabbers out there, and public directory scanners. Good luck.

  5. #35
    Junior Member
    Join Date
    Jul 2003
    Posts
    24
    everything you say is ok but i still can't get the point !!
    why do you all yale and complain, i had the feeling that this might be interesting for some people, i posetd it, people tried and successed, thats it .

    Why am having a feeling like you all hate sharing info ::wink::
    Ruslan K. Abu Zant
    eReg(c) Internet Services
    http://ereg.info/ | http://gold-directory.com/ | http://xui.info/

  6. #36
    The point is simple.

    No image protection script has worked so far, and this one does not work either.

    If you find a way foolproof way, you will be a millionaire.

    And who is "yale"ing and complaining? I am glad you posted the contest and yes we had fun, but it's kinda interesting you got a bit defensive after you got a little egg on the face. Aw c'mon, like you said yourself... time to start adding more protection routines in your code.

  7. #37
    Junior Member
    Join Date
    Jul 2003
    Posts
    24
    you got a little egg on the face
    i liked this...


    anyway no-problem@all
    greeny mood ;-)
    Ruslan K. Abu Zant
    eReg(c) Internet Services
    http://ereg.info/ | http://gold-directory.com/ | http://xui.info/

  8. #38
    Banned
    Join Date
    Jun 2003
    Posts
    1,536
    print screan will only work well if it a flat image you are trying to steel. it dont work on anamations..

    please correct me if im wrong..

    Nightfalls_Girl

  9. #39
    No, it does not work on animations, but get the right path and taa daa

Posting Permissions

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