Which one of these is the most effective vs checking if the user agent is accessing via the correct domain.
We would like to show a small js based \'top bar\' style
As a little memo: the interactive link anatomy
--
In short (assuming a location of http://example.org:8888/foo/bar#bang):
http://example.org:8888/foo/bar#bang
hostname
example.org
host
example.org:8888