Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-09-2007, 12:30 PM   #1
X37375787
Guest
 
Posts: n/a
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!
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-09-2007, 01:08 PM   #2
fuzebox
making it rain
 
fuzebox's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,115
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]


fuzebox is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-09-2007, 01:15 PM   #3
X37375787
Guest
 
Posts: n/a
Holy shit bro, that's some nice work. I'll give it a spin!
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-10-2007, 12:52 PM   #4
JD
Too lazy to set a custom title
 
Industry Role:
Join Date: Sep 2003
Posts: 22,651
Quote:
Originally Posted by Equinox View Post
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 ;)
JD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-10-2007, 02:19 PM   #5
fuzebox
making it rain
 
fuzebox's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,115
Quote:
Originally Posted by SPeRMiNaToR View Post
just tried it and it works great! hit me up to see it in action ;)
No thank you?


fuzebox is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-10-2007, 02:20 PM   #6
X37375787
Guest
 
Posts: n/a
Quote:
Originally Posted by SPeRMiNaToR View Post
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
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-10-2007, 02:20 PM   #7
NinjaSteve
Too lazy to set a custom title
 
Industry Role:
Join Date: Dec 2003
Posts: 11,089
Quote:
Originally Posted by fuzebox View Post
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.
__________________
...
NinjaSteve is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-10-2007, 03:30 PM   #8
dakota1358
Confirmed User
 
Join Date: Oct 2005
Location: Baltimore,Md
Posts: 2,114
Code:
<SCRIPT LANGUAGE=JavaScript>
<!--
  if (top.frames.length!=0)
   top.location=self.document.location;
// -->
</SCRIPT>
Stick that in your <head> section
__________________
Carmen Cocks Rocks
dakota1358 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-10-2007, 03:38 PM   #9
dynastoned
mmm yeah!
 
Industry Role:
Join Date: Feb 2005
Location: roseville, ca
Posts: 5,061
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>
dynastoned is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-10-2007, 03:39 PM   #10
Voodoo
♥ ♦ ♣ ♠
 
Voodoo's Avatar
 
Industry Role:
Join Date: Sep 2002
Posts: 10,592
(? removeGoogleFrame(); ?)
__________________

"I'm selflessly supporting the common good, but only coincidentally looking out for No.1."
Voodoo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-10-2007, 06:26 PM   #11
KrisKross
Confirmed User
 
KrisKross's Avatar
 
Join Date: Jan 2006
Location: Canada
Posts: 5,024
Very sexy, fuzey. Thanks for the code

Quote:
Originally Posted by fuzebox View Post
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]


__________________
KrisKross is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-10-2007, 06:30 PM   #12
JD
Too lazy to set a custom title
 
Industry Role:
Join Date: Sep 2003
Posts: 22,651
Quote:
Originally Posted by fuzebox View Post
No thank you?



thanks you sexy retired php ninja you
JD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-10-2007, 08:02 PM   #13
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
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
}
?>
__________________
hatisblack at yahoo.com

Last edited by SmokeyTheBear; 04-10-2007 at 08:03 PM..
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-10-2007, 08:07 PM   #14
martinsc
Too lazy to set a custom title
 
Industry Role:
Join Date: Jun 2005
Location: 127.0.0.1
Posts: 27,047
Quote:
Originally Posted by fuzebox View Post
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
martinsc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.