Past few days /var/log/nginx/error.log has been flooded with messages about someone trying to access /webservice/rest/server.php, even though the web service is not activated. I know it's a bot, but quite annoying.
Is it safe to write on the Nginx server block like this?
location /webservice/rest/server.php {
return 403;
log_not_found off;
access_log off;
}