File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URL Masking

 
Amit More
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 263
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic