Capture Originating Domain?

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
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

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 - I don't have any hosting on - I just own the domain name. I have that domain redirected to, where I have a website setup. My user enters into their browser and is redirected to On my, I have an index.php file where I want to add code to capture the fact that the user was redirected from the domain Is there a way to achieve this?
Thanks much!

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

Mon Jul 09, 2018 10:20 pm

Post Reply