nginx-ultimate-bad-bot-blocker
nginx-ultimate-bad-bot-blocker copied to clipboard
[INSTALLATION] (unknown directive)
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
Didnt change anything inside bad-referrer-words.conf:
my nginx version ;
nginx version: nginx/1.12.2
conf files;
[@01 conf.d]$ ls -la /etc/nginx/conf.d/
drwxr-xr-x. 2 root root 204 Sep 13 09:03 .
drwxr-xr-x. 6 root root 4096 Sep 13 08:56 ..
-rw-r--r--. 1 root root 684 Sep 8 09:07 balancers.conf
-rw-------. 1 root root 1893 Sep 8 07:52 botblocker-nginx-settings.conf
-rw-------. 1 root root 542111 Sep 8 07:52 globalblacklist.conf
-rw-r--r--. 1 root root 2318 Sep 13 08:57 my.conf
[@01 conf.d]$ ls -la /etc/nginx/bots.d/
drwxr-xr-x. 2 root root 225 Sep 13 08:22 .
drwxr-xr-x. 6 root root 4096 Sep 13 08:56 ..
-rw-------. 1 root root 4809 Sep 13 07:50 bad-referrer-words.conf
-rw-------. 1 root root 5197 Sep 8 07:52 blacklist-ips.conf
-rw-------. 1 root root 3956 Sep 8 07:52 blacklist-user-agents.conf
-rw-------. 1 root root 3623 Sep 8 07:52 blockbots.conf
-rw-------. 1 root root 2971 Sep 8 07:52 custom-bad-referrers.conf
-rw-------. 1 root root 1748 Sep 8 07:52 ddos.conf
-rw-------. 1 root root 2974 Sep 8 07:52 whitelist-domains.conf
-rw-------. 1 root root 2292 Sep 8 07:52 whitelist-ips.conf
same problem