Unwanted traffic (someone missconfigured DNS to my IP adress)

Friends,

i need advise…

i see many nginx acess to a website that is not hosted on my VPS…

it looks like domain owners missconfigured their DNS to a wrong IP adress… (which happen to be mine)
it is happening since many days already…

is it possible to “block” requests to this domain name ?
i want to minimize my computing time on this request and also don’t want to see it in my log files…

i changed a little bit the domain name adress in this example, in order to keep privacy of my public IP :slight_smile: so the domain below is not redirecting to my page…

https://www.serwisy-s.pl/

107.158.218.107 - - [30/Apr/2017:10:34:51 +0200] “GET /user/dashboard HTTP/1.1” 302 154 “https://www.serwisy-s.pl/” "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0"
107.158.218.107 - - [30/Apr/2017:10:34:51 +0200] “GET /yunohost/admin HTTP/1.1” 301 178 “https://www.serwisy-s.pl/user/dashboard” "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0"
107.158.218.107 - - [30/Apr/2017:10:34:51 +0200] “GET /yunohost/admin/ HTTP/1.1” 200 1288 “https://www.serwisy-s.pl/yunohost/admin” "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0"
107.158.218.107 - - [30/Apr/2017:10:34:51 +0200] “GET /user/profile HTTP/1.1” 302 154 “https://www.serwisy-s.pl/yunohost/admin/” "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0"
107.158.218.107 - - [30/Apr/2017:10:34:51 +0200] “GET /yunohost/admin HTTP/1.1” 301 178 “https://www.serwisy-s.pl/user/profile” "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0"
107.158.218.107 - - [30/Apr/2017:10:34:51 +0200] “GET /yunohost/admin/ HTTP/1.1” 200 1288 “https://www.serwisy-s.pl/yunohost/admin” “Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0”

**i made this , **
so all traffic to this domain get 444 return and messages are in seperate file, so i don’t see this call :wink:

server {
listen 80;
server_name www.serwisy-s.pl;
return 444;
error_log /var/log/nginx/serwisyerr.log;
access_log /var/log/nginx/serwisyacc.log;
}

server {
listen 443;
server_name www.serwisy-s.pl;
return 444;
error_log /var/log/nginx/serwisyerr.log;
access_log /var/log/nginx/serwisyacc.log;
}