aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "URL Masking" Watch "URL Masking" New topic
Author

URL Masking

Amit More
Greenhorn

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
Sheriff

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
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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.
Eric
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>
 
Consider Paul's rocket mass heater.
 
subject: URL Masking