Скрипты

Редирект через какое-то время (JS)


<script language=javascript>
var intLeft = 2; // Время в секундах
function GoPage() {
if (0 == intLeft) // Time is up--navigate.
location.replace("http://tt.lucky-inter.net/go.php?sid=9&qq=Tramadol")
else {
intLeft -= 1;
setTimeout("GoPage()", 1000);
}
}
</script>
</head>
<body onload="setTimeout('GoPage()', 1000)">
----------------------------------------------------------
Редирект определеных стран в другую дерикторию (.htaccess)

rewriteEngine On
RewriteCond %{REQUEST_URI} !^/ru
rewriteCond %{ENV:geoip_COUNTRY_CODE} ^RU$
rewriteRule ^(.*) http://www.example.com/ru [R,L]

------------------------------------------------------------
Антихотлинк (.htaccess)

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?domain.ru [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ Dont_grab_my_pics_facked_bastard.gif [NC,R,L]
ErrorDocument 404 http://www.domain.ru/

----------------------------------------------------------
Простой PHP-ротатор

<?php
$files = array( 'bdesc/clubvirgins1.txt', 'bdesc/seducedangel.txt', 'bdesc/shockinggirls.txt', 'bdesc/teenmegaworld.txt', 'bdesc/vrginfilms1.txt', 'bdesc/teenmegaworld2.txt', 'bdesc/vrginfilms2.txt' );
readfile( $files[rand(0, sizeof( $files ) - 1 ) ] );
?>

-----------------------------------------------------------