nginx_ua_block_pleroma_rejects: Don't match subdomains.
This commit is contained in:
parent
75d5781764
commit
7f14708527
|
@ -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_3
|
||||
# Version: 2019-08-18_4
|
||||
|
||||
|
||||
function get_domains() # Output domains, separated by newline.
|
||||
|
@ -25,7 +25,7 @@ function print_entry() # Output map entry.
|
|||
domain=$(sed 's/\./\\./g' <<<${domain}) # . → \.
|
||||
domain=$(sed 's/\*/.*/g' <<<${domain}) # * → .*
|
||||
|
||||
echo " ~*${domain} 1;"
|
||||
echo " ~*//${domain} 1;"
|
||||
}
|
||||
|
||||
function main()
|
||||
|
|
Loading…
Reference in New Issue
Block a user