/* tam matching */
if ($_SERVER['HTTP_REFERER'] == 'http://www.baskabirsite.com') {
header("Location: http://burayayonlendir.com");
exit;
}
/* bolumsel match */
if (eregi('http://www.google.com',$_SERVER['HTTP_REFERER'])) {
header("Location: http://burayayonlendir.com");
exit;
}
Böyle birşey işini görür mü?
PHP:Options +FollowSymLinks RewriteEngine on RewriteBase / RewriteRule (.*) [url]http://www.site.com/index.php[/url] [R=301,L]
PHP:/* tam matching */ if ($_SERVER['HTTP_REFERER'] == 'http://www.baskabirsite.com') { header("Location: http://burayayonlendir.com"); exit; } /* bolumsel match */ if (eregi('http://www.google.com',$_SERVER['HTTP_REFERER'])) { header("Location: http://burayayonlendir.com"); exit; }
İlk include edilen dosyaya eklersen olur heralde. Wordpress kullanmadım hiç. wp-config.php uygundur muhtemelen.
Çözdünüz mü hocam?
<php if(strpos($_SERVER['REQUEST_URI'], '?ref=')){
header("Location: index.php");
die();
}
ref saldırılarını önlemek için wp'de header.php için
PHP:<php if(strpos($_SERVER['REQUEST_URI'], '?ref=')){ header("Location: index.php"); die(); }
şöyle bir kod kullanılıyor, bunun üzerinde oynama yaparak birşeyler çıkabilir.
hihihi:uyku:
hihihi:uyku:
RewriteCond %{THE_REQUEST} \?(ref=.*)?\ HTTP [NC]
RewriteRule .? http://www.yonleneceksite.com
bu mantıkta bir şeyler olmalı sanırım.
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://referralgonderensite.com/
RewriteRule /* http://www.baskasite.com/bu.html [R,L]
RewriteCond %{HTTP_REFERER} ^http://referralgonderensite2.com/
RewriteRule /* http://www.baskasite.com/bu.html [R,L]
linkler
www.site.com/?ref=asdfd
şeklinde geliyorsa .htaccess dosyanadeneyebilirsin.Kod:RewriteCond %{THE_REQUEST} \?(ref=.*)?\ HTTP [NC] RewriteRule .? http://www.yonleneceksite.com
verdiğim kodun çalışması lazım, nereye paste ediyorsun?
Türkiye’nin ilk webmaster forum sitesi iyinet.com'da forum üyeleri tarafından yapılan tüm paylaşımlardan; Türk Ceza Kanunu’nun 20. Maddesinin, 5651 Sayılı Kanununun 4. maddesinin 2. fıkrasına göre, paylaşım yapan üyeler sorumludur.