I am working on one API where i need to validate requested domains.
So how can i have domain name?
I want domain name like http://google.com if request to my site coming from http://google.com
I have tried all the $_REQUEST global variables but in some i can find ip address in some i can have hosting company name means host. But i want just domain name or sub-domain if it is from.