iterating on @maxine's location block to drop Gab user agents trying to fetch things from your nginx, I wrote a quick config snippet to dump all Gab user agents log lines to a file on their own (i.e. for automated iptables blocking, or some other clever solution.)
log_format gab '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"';
map $http_user_agent $gabuser {
~*(gabsocial) 1;
default 0;
}
access_log /var/log/nginx/gabusers.log gab if=$gabuser;