Re: [go-nuts] Re: Reject Unknown clients
Il giorno giovedì 4 agosto 2016 17:38:10 UTC+2, Naveen Shivegowda ha scritto: > > Hi > Thanks for the reply. > Which method can be used from http pkg to filter ip's, I didn't find any > in golang.org > > See https://golang.org/pkg/net/http/#Request. You can use RemoteAddr field to find the client IP address. > [...] Manlio -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [go-nuts] Re: Reject Unknown clients
Hi Thanks for the reply. Which method can be used from http pkg to filter ip's, I didn't find any in golang.org On Aug 4, 2016 8:56 PM, "Hotei" wrote: > Certainly possible. You can put the whitelisted IPS in a map and use that > to filter the incoming requests. > > On Thursday, August 4, 2016 at 10:17:37 AM UTC-4, Naveen Shivegowda wrote: >> >> Is it possible to make http servers listen only on a few source ip's and >> request from any other source should be rejected? >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "golang-nuts" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/golang-nuts/t40k21fy0Rs/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[go-nuts] Re: Reject Unknown clients
Certainly possible. You can put the whitelisted IPS in a map and use that to filter the incoming requests. On Thursday, August 4, 2016 at 10:17:37 AM UTC-4, Naveen Shivegowda wrote: > > Is it possible to make http servers listen only on a few source ip's and > request from any other source should be rejected? > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.