What is the difference between watchdog Location and watchdog Referrer in dblog messages?

An easy example to see the difference would be nice, for example on the node creation/edit they are the same.In which case these two URLs will be different?

1 Answer 1


The 'Location' is the URL a user/process was visiting when the watchdog entry was invoked.

The 'Referrer' is the URL that referred the user to the 'Location' URL.

So if a person goes directly from a link on http://www.google.com to http://yoursite.com/, and visiting that URL on your site generates a watchdog record, the 'Location' will be '/', and the 'Referrer' will be 'http://www.google.com'.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.