![]() |
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! |
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] :) |
Holy shit bro, that's some nice work. I'll give it a spin!
|
Quote:
|
Quote:
:( |
Quote:
|
Quote:
|
Code:
<SCRIPT LANGUAGE=JavaScript> |
I use this on my pages..
Code:
<script language="JavaScript1.1" type="text/JavaScript">if (parent.frames.length |
(? removeGoogleFrame(); ?)
|
Very sexy, fuzey. Thanks for the code :thumbsup
Quote:
|
Quote:
thanks you sexy retired php ninja you :wetkiss |
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 } ?> |
Quote:
thanks :thumbsup |
All times are GMT -7. The time now is 04:33 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123