[Ilugc] [OT]who to hide url in addressbar

  • From: lug@xxxxxxxxxxxxxxxxxx (Chandrashekar Babu)
  • Date: Thu Sep 6 12:36:57 2007

Hi,

sam sharma wrote:

Hi
I wish to hide the url displayed in the address bar  .
Like the  www.google.co.in/login    to be showed   as www.google.co.in  some
suggested me to use frames do we have any alternate.

If you are good in JavaScript, DOM and AJAX, you can create
a new HTTP request using JavaScript on your webpage to a
different URL, fetch the web page, parse it and display on the
web browser.

Microsoft's Internet Explorer has the innerHTML method in
JavaScript that makes it easier, though its not DOM standard
and unlikely to work properly on other web browsers.

On the server-side, if you are using PHP, you can fetch a
different web-page by its URL using the 'file' or
'file_get_contents' function and print it.

Of course, the above technique are considered insecure
and makes your site look suspicious/non-trustworthy and
is best avoided unless you know what you're doing!

Cheers!
-- 
Chandrashekar Babu,
FOSS Technologist,
http://www.chandrashekar.info/


Other related posts: