G image search frame breaker code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • X37375787
    • Jul 2026

    #1

    G image search frame breaker code

    I'm looking for a G image search frame breaker code that is not generic, got plenty of those. I always run into problems with WordPress' post preview that gets fucked up when I load the generic code, I know someone's gotta have a G-specific one handy.

    Merci!
  • fuzebox
    making it rain
    • Oct 2003
    • 22352

    #2
    I wrote this for my domains, better than just using frame breaking code imo.

    1) Create a file in your root called googleimages.php:

    <html><head><title>Loading Site...</title>
    <script language="Javascript">
    <!--
    if (top.location != location) top.location.href = 'http://<? print $_SERVER["SERVER_NAME"] . $url;?>';
    //-->
    </script>
    </head>
    <body><center><a target=_top href="http://<? print $_SERVER["SERVER_NAME"] . $url; ?>">Click Here To Load The Site</a></center>
    </body></html>

    2) Stick this in your .htaccess:

    RewriteEngine On
    RewriteCond &#37;{HTTP_REFERER} ^http://images.google
    RewriteCond %{REQUEST_URI} !googleimages.php
    RewriteCond %{REQUEST_URI} (.*)
    RewriteRule /* /googleimages.php?url=%1 [R,L]


    Comment

    • X37375787

      #3
      Holy shit bro, that's some nice work. I'll give it a spin!

      Comment

      • JD
        Too lazy to set a custom title
        • Sep 2003
        • 22651

        #4
        Originally posted by Equinox
        Holy shit bro, that's some nice work. I'll give it a spin!
        just tried it and it works great! hit me up to see it in action ;)

        Comment

        • fuzebox
          making it rain
          • Oct 2003
          • 22352

          #5
          Originally posted by SPeRMiNaToR
          just tried it and it works great! hit me up to see it in action ;)
          No thank you?


          Comment

          • X37375787

            #6
            Originally posted by SPeRMiNaToR
            just tried it and it works great! hit me up to see it in action ;)
            Shoot me a msg once icq is back. 155421 Thanks

            Comment

            • NinjaSteve
              Too lazy to set a custom title
              • Dec 2003
              • 11089

              #7
              Originally posted by fuzebox
              I wrote this for my domains, better than just using frame breaking code imo.

              1) Create a file in your root called googleimages.php:

              <html><head><title>Loading Site...</title>
              <script language="Javascript">
              <!--
              if (top.location != location) top.location.href = 'http://<? print $_SERVER["SERVER_NAME"] . $url;?>';
              //-->
              </script>
              </head>
              <body><center><a target=_top href="http://<? print $_SERVER["SERVER_NAME"] . $url; ?>">Click Here To Load The Site</a></center>
              </body></html>

              2) Stick this in your .htaccess:

              RewriteEngine On
              RewriteCond %{HTTP_REFERER} ^http://images.google
              RewriteCond %{REQUEST_URI} !googleimages.php
              RewriteCond %{REQUEST_URI} (.*)
              RewriteRule /* /googleimages.php?url=%1 [R,L]


              I <3 you in a not so gay way.
              ...

              Comment

              • dakota1358
                Confirmed User
                • Oct 2005
                • 2114

                #8
                Code:
                <SCRIPT LANGUAGE=JavaScript>
                <!--
                  if (top.frames.length!=0)
                   top.location=self.document.location;
                // -->
                </SCRIPT>
                Stick that in your <head> section
                Carmen Cocks Rocks

                Comment

                • dynastoned
                  mmm yeah!
                  • Feb 2005
                  • 5061

                  #9
                  I use this on my pages..

                  Code:
                  <script language="JavaScript1.1" type="text/JavaScript">if (parent.frames.length
                  > 0) top.location.replace(document.location);</script>

                  Comment

                  • Voodoo
                    ♥ ♦ ♣ ♠
                    • Sep 2002
                    • 10600

                    #10
                    (? removeGoogleFrame(); ?)

                    "I'm selflessly supporting the common good, but only coincidentally looking out for No.1."

                    Comment

                    • KrisKross
                      Confirmed User
                      • Jan 2006
                      • 5025

                      #11
                      Very sexy, fuzey. Thanks for the code

                      Originally posted by fuzebox
                      I wrote this for my domains, better than just using frame breaking code imo.

                      1) Create a file in your root called googleimages.php:

                      <html><head><title>Loading Site...</title>
                      <script language="Javascript">
                      <!--
                      if (top.location != location) top.location.href = 'http://<? print $_SERVER["SERVER_NAME"] . $url;?>';
                      //-->
                      </script>
                      </head>
                      <body><center><a target=_top href="http://<? print $_SERVER["SERVER_NAME"] . $url; ?>">Click Here To Load The Site</a></center>
                      </body></html>

                      2) Stick this in your .htaccess:

                      RewriteEngine On
                      RewriteCond %{HTTP_REFERER} ^http://images.google
                      RewriteCond %{REQUEST_URI} !googleimages.php
                      RewriteCond %{REQUEST_URI} (.*)
                      RewriteRule /* /googleimages.php?url=%1 [R,L]


                      Comment

                      • JD
                        Too lazy to set a custom title
                        • Sep 2003
                        • 22651

                        #12
                        Originally posted by fuzebox
                        No thank you?



                        thanks you sexy retired php ninja you

                        Comment

                        • SmokeyTheBear
                          ►SouthOfHeaven
                          • Jun 2004
                          • 28609

                          #13
                          php version

                          <?php
                          $redir = "http://redirect.com/";
                          $ref = $_SERVER["HTTP_REFERER"];
                          if (preg_match ("/google/", $ref)) {
                          ?>

                          <script>

                          top.location.href = '<?php echo $redir; ?>' ;


                          </script>
                          <?php
                          }
                          ?>
                          Last edited by SmokeyTheBear; 04-10-2007, 07:03 PM.
                          hatisblack at yahoo.com

                          Comment

                          • martinsc
                            Too lazy to set a custom title
                            • Jun 2005
                            • 27047

                            #14
                            Originally posted by fuzebox
                            I wrote this for my domains, better than just using frame breaking code imo.

                            1) Create a file in your root called googleimages.php:

                            <html><head><title>Loading Site...</title>
                            <script language="Javascript">
                            <!--
                            if (top.location != location) top.location.href = 'http://<? print $_SERVER["SERVER_NAME"] . $url;?>';
                            //-->
                            </script>
                            </head>
                            <body><center><a target=_top href="http://<? print $_SERVER["SERVER_NAME"] . $url; ?>">Click Here To Load The Site</a></center>
                            </body></html>

                            2) Stick this in your .htaccess:

                            RewriteEngine On
                            RewriteCond %{HTTP_REFERER} ^http://images.google
                            RewriteCond %{REQUEST_URI} !googleimages.php
                            RewriteCond %{REQUEST_URI} (.*)
                            RewriteRule /* /googleimages.php?url=%1 [R,L]



                            thanks
                            Make Money

                            Comment

                            Working...