Home > Net >  Javascript: Is it possible to find out if the visitor used IP-Address or Domain Name?
Javascript: Is it possible to find out if the visitor used IP-Address or Domain Name?

Time:11-08

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.

  • Related