Block access to /webservice/rest/server.php

Block access to /webservice/rest/server.php

by Mawan A. Nugroho -
Number of replies: 0

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;
}


Average of ratings: -