github.com/vpxyz/dnsrebinding (go): Package dnsrebinding provides simple middleware that protect your services against DNS rebinding attack. In order to prevent DNS rebinding attack, this filter check if the Host header matches the host name of the server on which the resource resides. This middleware increases the security level of CORS filter (see https://www.w3.org/TR/cors/#resource-security). As default, if the provvided statusCode isn't valid, returns http.StatusNotImplemented.  Example: package main  import (  )
Keywords: dns|golang|golang-library|middleware|rebinding|security