my question is how to know the location of a website, if it is hosted in Europe or America for example? Or is there a website where I can see where certain pages are hosted? It is because I have a PRTG sensor that analyzes the ping (in ms) of a website and I wanted to compare them with each other. Sorry I didn't know what tag to use and it's not about specific code either.
Browsing google I found that, I hope it helps you
http://www.dnsqueries.com/es/locate_place_ip_address.php
Give it a check with this: https://www.woorank.com which generates interesting information for free
To get the IP : http://get-site-ip.com/
for example www.ziarulactualitatea.ro gets the IP address 188.213.22.57
having the IP used: https://www.iplocation.net/
to obtain geolocation data in addition to Country, Region, City.
or directly with the ip you get the location through google maps through: http://www.ipfingerprints.com/