I'm interested in knowing if a visitor to my site used http://ip-address or http://domain-name. Is this possible with javascript?
CodePudding user response:
No, DNS servers simply look up the IP address for a domain name and forward the request to that address. The web server never sees what the user entered into the address bar, only the path, query, and fragment.