From fdb57a87dedefa9d0faeda563d12975dbb845c16 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 18 Aug 2019 19:49:39 +0200 Subject: [PATCH] nginx_ua_block_pleroma_rejects: Oops, it is ^~, not ~^. --- nginx_ua_block_pleroma_rejects.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx_ua_block_pleroma_rejects.sh b/nginx_ua_block_pleroma_rejects.sh index d44bb4c..f7d42bd 100755 --- a/nginx_ua_block_pleroma_rejects.sh +++ b/nginx_ua_block_pleroma_rejects.sh @@ -4,7 +4,7 @@ # Save the output to a file and include it in an nginx configuration file. Then # add `if ($blockedagent) { return 403; }` to your server blocks. -# Version: 2019-08-18_1 +# Version: 2019-08-18_2 function get_domains() # Output domains, separated by newline. @@ -24,7 +24,7 @@ function print_entry() # Output map entry. # Remove wildcards. domain=$(sed 's/\*//g' <<<${domain}) - echo " ~^${domain} 1;" + echo " ^~${domain} 1;" } function main()