2012-03-21 4 views
2
RewriteEngine on 
RewriteCond %{HTTP_REFERER}!(.*)ocean-leecher.net(.*) 
RewriteCond %{HTTP_REFERER}!(.*)blindtext.info(.*) 
RewriteCond %{HTTP_REFERER}!(.*)yourdomain.com(.*) 
RewriteRule ^(.*)$ - [F] 

이 코드는 기본 도메인의 모든 페이지에 대해 3 개의 참조 트래픽을 허용합니다.단일 참조 자 트래픽 .htaccess

단지 maindomain.com/thankyoupage.php

답변

0

이 코드가 유효하게 할 수있는 방법이 여기에 다음과 같은

RewriteCond %{REQUEST_URI} ^/thankyoupage.php$ 
0

변경 당신의 코드를 추가

RewriteEngine on 

RewriteCond %{HTTP_HOST} maindomain\.com$ [NC] 
RewriteCond %{HTTP_REFERER} !(ocean-leecher\.net|blindtext\.info|yourdomain\.com) [NC] 
RewriteRule ^thankyoupage\.php$ - [F,NC,L]