I have added bad-referrer-words.conf inside /etc/nginx/conf.d/my.conf like below ;
server {
listen 443 ;
...
# Bad Bot Blocker
include /etc/nginx/bots.d/blockbots.conf;
include /etc/nginx/bots.d/bad-referrer-words.conf;
location /
..
}
it returns an error ;
nginx: [emerg] unknown directive "~*(?:\b)mb_ereg_replace(?:\b)" in /etc/nginx/bots.d/bad-referrer-words.conf:79
nginx: configuration file /etc/nginx/nginx.conf test failed
I have added bad-referrer-words.conf inside /etc/nginx/conf.d/my.conf like below ;
it returns an error ;
nginx: [emerg] unknown directive "~*(?:\b)mb_ereg_replace(?:\b)" in /etc/nginx/bots.d/bad-referrer-words.conf:79 nginx: configuration file /etc/nginx/nginx.conf test failed
Didnt change anything inside bad-referrer-words.conf:
my nginx version ;
nginx version: nginx/1.12.2
conf files;