单引用流量.htaccess
问题描述:
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
答
你的代码中添加以下
RewriteCond %{REQUEST_URI} ^/thankyoupage.php$
答
改成这样:
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]