GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Google Images sends 1 person every 2 seconds to me. (https://gfy.com/showthread.php?t=679933)

fr0gman 11-23-2006 01:43 AM

<?
$guy = $_SERVER["HTTP_REFERER"];

if (preg_match ("/search/", $guy)) {
?>
<script>
if (top.location != location) {
top.location.href = 'http://yoursite.com' ;
}

</script>
<?php
}
?>

Page 2... yahooooooo Join www.wetboxbucks.com

MyNameIsNobody 11-23-2006 01:54 AM

Are there any firemen visiting the site?
http://www.marquettecountyfair.com/images/fire.gif

Nicky 11-23-2006 04:16 AM

Quote:

Originally Posted by fr0gman (Post 11375742)
<?
$guy = $_SERVER["HTTP_REFERER"];

if (preg_match ("/search/", $guy)) {
?>
<script>
if (top.location != location) {
top.location.href = 'http://yoursite.com' ;
}

</script>
<?php
}
?>

Page 2... yahooooooo Join www.wetboxbucks.com

I've always been bad on the scripting, so where do I put this? In a text file in the img folders or on my domain roots index, or on all my html pages?

SmokeyTheBear 11-23-2006 04:44 AM

Quote:

Originally Posted by Nicky (Post 11376318)
I've always been bad on the scripting, so where do I put this? In a text file in the img folders or on my domain roots index, or on all my html pages?

i think this should work for javascript , just put it in your head ( i havent tested it but try it and see )

Code:

<script language="Javascript">
var myRegExp = /google/;
var string1 = document.referrer;
var matchPos1 = string1.search(myRegExp);

if(matchPos1 != -1)
        top.location="http://yoursite.com";

</script>


X37375787 11-23-2006 05:53 AM

Quote:

Originally Posted by fr0gman (Post 11375742)
<?
$guy = $_SERVER["HTTP_REFERER"];

if (preg_match ("/search/", $guy)) {
?>
<script>
if (top.location != location) {
top.location.href = 'http://yoursite.com' ;
}

</script>
<?php
}
?>

Page 2... yahooooooo Join www.wetboxbucks.com


Nice, I always used a non-conditional frame breaker, which got really lame at times, especially when working with iframe previews. :thumbsup

Thanks!

Nicky 11-23-2006 05:59 AM

Quote:

Originally Posted by SmokeyTheBear (Post 11376415)
i think this should work for javascript , just put it in your head ( i havent tested it but try it and see )

Code:

<script language="Javascript">
var myRegExp = /google/;
var string1 = document.referrer;
var matchPos1 = string1.search(myRegExp);

if(matchPos1 != -1)
        top.location="http://yoursite.com";

</script>


Thanks, and this would be in the head tag of the html page with the thumbnails?

djroof 11-23-2006 06:03 AM

Great man!

V_RocKs 11-23-2006 06:16 AM

Are these people looking for images of porn or shit like suitcases, sunglasses, mainstream?


All times are GMT -7. The time now is 08:36 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123