From 9e8ae6f7fcfaa765d6f5ff13009ca580a797bd70 Mon Sep 17 00:00:00 2001 From: moustachu Date: Mon, 11 Dec 2023 22:04:43 +0100 Subject: [PATCH] feat: filter bad search bot in NGINX --- .platform/nginx/conf.d/elasticbeanstalk/filter_agent.conf | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .platform/nginx/conf.d/elasticbeanstalk/filter_agent.conf diff --git a/.platform/nginx/conf.d/elasticbeanstalk/filter_agent.conf b/.platform/nginx/conf.d/elasticbeanstalk/filter_agent.conf new file mode 100644 index 0000000..aaebfa0 --- /dev/null +++ b/.platform/nginx/conf.d/elasticbeanstalk/filter_agent.conf @@ -0,0 +1,3 @@ +if ($http_user_agent ~* (AhrefsBot|SemrushBot|SeekportBot|PetalBot|Qwantify-dev|CCBot|Bytespider) ) { + return 202; +} \ No newline at end of file