
Thanks to a reader named Robert who passes along the following tip:
If you put the following script in the address bar of yourThis is a handy tool when you get one of those fake phishing e-mails from somebody posing as a bank or credit card company trying to steal your identity.
browser when you are at any site, you will get the true address
of the URL. Of course, most sites return exactly the same thing
as shown. But I've been in supposed Yahoo Wallet sites that were
in Slovakia.
javascript:alert("The real URL of this site is: " +
location.protocol + "//" + location.hostname + "/");
Type:
javascript:alert("The real URL of this site is: " + location.protocol + "//" + location.hostname + "/");
That's pretty neat! And,
http://dnsstuff.com/
- looks like it could be helpful. I use:
http://combat.uxn.com/
Thanks!
Posted by: Tracer at January 16, 2004 05:38 PMThat's a good trick. I'm not sure how useful this might be to most folks, but if you want to understand this at a technical level, check http://www.faqs.org/rfcs/rfc2396.html. (Can't do italics here, so quotes from the RFC are in {{double curlies}}.)
From section 3:
{{This "generic URI" syntax consists of a sequence of four main components:
<scheme>://<authority><path>?<query>
each of which, except , may be absent from a particular URI.}}
Right, so in a web browser, you're typically interested in a scheme we're all familiar with: http. The "authority" is a little more complicated: it's specifying which web server to connect to. It's not, as it turns out, as simple as www.mikesejournal.com.
From section 3.2.2:
{{URL schemes that involve the direct use of an IP-based protocol to a specified server on the Internet use a common syntax for the server component of the URI's scheme-specific data:
<userinfo>@<host>:<port>
where <userinfo> may consist of a user name and, optionally, scheme-specific information about how to gain authorization to access the server.}}
Well, since http is an IP-based protocol, this is relevant. Here's the catch:
{{The parts "<userinfo>@" and ":<port>" may be omitted.}}
The userifno@ allows a registered user to log on as, say, [email protected], in a manner similar to email, but most people have never seen that, so they assume a URL looks like:
h ttp://<host><path>...
The scam, then, works by putting a fake host entry into the userinfo. So if I wanted to imitate paypal:
h ttp://www.paypal.com:<lots of URL looking garbage here to scroll my domain off the address bar>@scam.com/
Anyway, that's just to give you an idea of what's going on.
Incidentally, you can copy that javascript into a bookmark to put on your bookmarks bar and then you can get that info with one click. (In safari, copy the Javascript code, add a bookmark to whatever page, then Bookmarks/Show All Bookmarks, then control-click the new bookmark you made and choose Edit Address.)
Posted by: Ben Samuel at January 18, 2004 02:13 AMI mentioned one way of obfuscating a URL which is most useful to people running scams. Here's a site that goes into tricks using what's known as URI escaping: http://www.rain.org/~mkummel/stumpers/08dec00.html
Posted by: Ben Samuel at January 18, 2004 02:27 AMYes. I agree.
This is very interesting.
Thanks for the information!
I've been watching some sites that were linked from weblogs.
Now google does not display the weblogs links when you seach for backward links.
It seems that these links don't count anymore.
Damn you are good Mike. Every time I come to you I find something handy. Thanks for sharing these tools. Thanks to your reader Robert also.
Posted by: Rhonda at January 16, 2004 12:34 PM