Is it possible to detect whether a user navigated to my site via Domain Name or by IP Address? Google isn’t being very helpful.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, you can eg. use client-side, in JavaScript (judging from the tags it is acceptable):
as per documentation: https://developer.mozilla.org/en-US/docs/DOM/window.location
Or server-side, in PHP:
as per documentation: http://php.net/manual/en/reserved.variables.server.php