@Big_Turk 'ün verdiği kodlara ek olarak.
Sanırım verilen linki değiştiremiyor, bu yüzden şöyle birşey yapılabilir.
.htaccess
Alıntı
RewriteRule ^winrar\.exe$ winrar.php
winrar.php <?php
$gelenref = $_SERVER['HTTP_REFERER'];
if(preg_match("@tamdindir.com@si", $gelenref) or preg_match("@inndir.com@si", $gelenref)) {
header('Location: http://subdomain.site.com/winrar.exe');
}
?>
--R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 23:54:54 -->-> Daha önceki mesaj 23:51:07 --
Yorumunuz için çok teşekkürler. ancak exe ismi değişmektedir. Örnek, skype.exe ise skype.exe, winrar ise winrar.exe gibi isimler değişmeden otomatik yönlendirmek istiyorum.
O halde şöyle yapılabilir.
Alıntı
RewriteRule ^(.*)\.exe$ exe_yonlendir.php?program=$1
exe_yonlendir.php <?php
$gelenref = $_SERVER['HTTP_REFERER'];
$program = $_GET['program'];
if(preg_match("@tamdindir.com@si", $gelenref) or preg_match("@inndir.com@si", $gelenref)){
header('Location: http://subdomain.site.com/'.$program.'.exe');
}
?>