Added the ability to force the referer to be on the same domain