File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes URL Masking Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "URL Masking" Watch "URL Masking" New topic

URL Masking

Amit More

Joined: Oct 16, 2003
Posts: 24
Hi Friends,
I want some java/javascript code which will give me the result in following way :
There are two servers
say and
Port opened on is mapped with
In my browser it's showing me (where as the pages are on xyz server.)
Now I want to hide or masked from my browser with some other name.
Can any one help me out ?
Its urgent .

Thanks,<br />Amit
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Java is not JavaScript. JavaScript is not Java. Java cannot mask a URL as you're wanting to do. I doubt that JavaScript can either.
Moving this to the HTML / JavaScript forum...

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
You can not maske the url, best you can do is use frames and the one url will only show, but it does nothing to hide it.
Learn to deal with it since this is a security issue.
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
LOL....actually you can do it with IE with the new BUG they found in IE6. Search soundforge and they show you how, but it will be fixed by microsoft.
Tom Blough
Ranch Hand

Joined: Jul 31, 2003
Posts: 263

You'll need to change onClik to onClick in the above for it to work. Note this won't work for hyperlinks because IE escapes non-standard characters in hyperlinks. For this exploit to work, the URL cannot be encoded.
As Eric said, this will be fixed within a few days. How soon people actually patch their browsers is a different question.

Tom Blough<br /> <blockquote><font size="1" face="Verdana, Arial">quote:</font><hr>Cum catapultae proscriptae erunt tum soli proscripti catapultas habebunt.<hr></blockquote>
I agree. Here's the link:
subject: URL Masking
It's not a secret anymore!