Answer the question
In order to leave comments, you need to log in
How to filter by referrer using htaccess?
Hello. It is necessary to deny access to the site from all sites except those specified
via
htaccess
301 254 " www.bing.com/search?q= " "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko" 652 484 0 643
176.195.98.199 - - [13/Feb/2017: 00:17:10 +0300] "GET /247-microsoft-excel.html HTTP/1.0" 301 257 " yandex.ru/clck/jsredir?from=yandex.ru " "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; Media Center PC 6.0; InfoPath.3)" 1355 490 0 801
213.180.206.198 - - [13/Feb/2017:00:17:11 +0300] "GET / HTTP/1.0" 301 233 "-" "Mozilla/5.0 (compatible; YandexMetrika/2.0; + yandex.com/bots)" 357 442 0 790
The first 2 users need to be redirected to another site, and 3 bots should be denied access
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question