wood burning stoves
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

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
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 abc.com and xyz.com
Port opened on abc.com is mapped with xyz.com
In my browser it's showing me abc.com (where as the pages are on xyz server.)
Now I want to hide or masked abc.com 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: http://aspose.com/file-tools
subject: URL Masking
jQuery in Action, 3rd edition