- Joined
- Sep 29, 2004
- Messages
- 1,417
- Reaction score
- 29
Does anyone know a way of detecting if a user has arrived at your site via a 301 redirect from another domain, either using JavaScript, PHP, or whatever?
Basically, I work for a UN organization, and a scammer is trying to fool people into sending them info, donations etc, by using an email address which is a typo of our domain. To make it look like they are legit, they also have a 301 redirect so that if anyone tries the domain in a browser it looks like they are at the genuine UN agencies website.
What we want to do is pop-up a window if the user is coming from the false domain, saying, "Please be aware that xxxxx.com is in no way affiliated with the UN, and and it is strongly advises not to respond to any communications originating from this address" etc...
But because the redirect is at server level, (I'm assuming htaccess 301), there is no "HTTP-REFERRER" value, or way of telling that they were redirected. Does anyone know a way arround this?
Thanks,
Neil
Basically, I work for a UN organization, and a scammer is trying to fool people into sending them info, donations etc, by using an email address which is a typo of our domain. To make it look like they are legit, they also have a 301 redirect so that if anyone tries the domain in a browser it looks like they are at the genuine UN agencies website.
What we want to do is pop-up a window if the user is coming from the false domain, saying, "Please be aware that xxxxx.com is in no way affiliated with the UN, and and it is strongly advises not to respond to any communications originating from this address" etc...
But because the redirect is at server level, (I'm assuming htaccess 301), there is no "HTTP-REFERRER" value, or way of telling that they were redirected. Does anyone know a way arround this?
Thanks,
Neil