Skip to content

Commit

Permalink
feat: filter bad search bot in NGINX
Browse files Browse the repository at this point in the history
  • Loading branch information
moustachu committed Dec 11, 2023
1 parent 825e8e9 commit 25f5b84
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .platform/nginx/conf.d/elasticbeanstalk/filter_agent.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if ($http_user_agent ~* (AhrefsBot|SemrushBot|SeekportBot|PetalBot|Qwantify-dev|CCBot|Bytespider) ) {
return 202;
}

0 comments on commit 25f5b84

Please sign in to comment.