Capture Originating Domain?

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
marz
New php-forum User
New php-forum User
Posts: 3
Joined: Mon Dec 11, 2017 3:00 pm

Mon Jul 09, 2018 10:53 am

Hello!
Can I ask a question regarding (reliably) capturing the domain name that my user traveled FROM to get to my site? Here is my scenario: Say I own a domain called www.abc.com - I don't have any hosting on abc.com - I just own the domain name. I have that domain redirected to xyz.com, where I have a website setup. My user enters www.abc.com into their browser and is redirected to www.xyz.com. On my www.xyz.com, I have an index.php file where I want to add code to capture the fact that the user was redirected from the domain www.abc.com. Is there a way to achieve this?
Thanks much!
Marz

chorn
php-forum Fan User
php-forum Fan User
Posts: 559
Joined: Fri Apr 01, 2016 2:18 am

Mon Jul 09, 2018 10:20 pm


Post Reply