referrer header code example
Example 1: req.header('Referer');
req.headers.referer
Example 2: what is referer header
The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example