Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
102
rated 0 times [  108] [ 6]  / answers: 1 / hits: 66060  / 13 Years ago, mon, august 29, 2011, 12:00:00

How do I find the a referring sites URL in node?



I'm using express, would I find this in the headers on connect or something?



Thanks!


More From » http

 Answers
11

If you mean how do you get it when running an express server, then it's done using the header method on your request:


req.headers.referer;
// => "http://google.com"

[#90357] Saturday, August 27, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kaitlynnb

Total Points: 402
Total Questions: 96
Total Answers: 109

Location: Trinidad and Tobago
Member since Fri, May 8, 2020
4 Years ago
kaitlynnb questions
;