Web Security · HTTP and hosting
Referer header
Also known as: HTTP Referer
The HTTP request header named Referer reports the initiating page URL or a reduced origin when a browser sends it. It can be absent under Referrer-Policy or browser privacy behavior. For CSRF checks, parse its scheme, host, and port and compare the resulting origin to the allowed origin; a hostname substring is unsafe.