How to Prevent Enumeration of Usernames In Nginx

How can I prevent Enumeration of Usernames In Nginx?

I’m using the following code:

if ($args ~ “^/?author=([0-9]*)”:wink:{

set $rule_0 1$rule_0;

}

if ($rule_0 = “1”:wink:{

rewrite ^/$ https://axe+++++++++ur.is/404;

}

Is there a way to use a variable instead of a URL?