Forum Moderators: open
An easier, overall, view is that I'm trying to find out if the domain name is pointing to the same box that is serving the page. Neither the domain name, nor the IP is going to stay constant enough to hard-code them.
<edit> so sorry, spayeur, for some unknown reason, i thought that I understood you to be looking for an IP look up. Geez, that was silly.
Request.ServerVariables("SERVER_NAME")
Request.ServerVariables("LOCAL_ADDR")
I don't know what you want to do with it, because the client won't see your code so it won't help you fighting other that copy your stuff...