Skip to content

Instantly share code, notes, and snippets.

@acidsploit
Created August 7, 2017 10:06
Show Gist options
  • Save acidsploit/5b57cccaceecb60bbdcb3b3fb1f13ae8 to your computer and use it in GitHub Desktop.
Save acidsploit/5b57cccaceecb60bbdcb3b3fb1f13ae8 to your computer and use it in GitHub Desktop.
nginx simple myip service - return 200 visitor ip
location = / {
add_header Content-Type text/plain; return 200 $remote_addr;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment