karalics
10/30/2017 - 3:52 PM

nginx ip response

Nginx snippet for showing plain text IP adress of client as a response.

server {
        server_name  ip.slavi.cc;
        location / {
                return 200 $remote_addr;
                add_header Content-Type text/plain;
                default_type text/plain;
        }
}