Javascript to hide *true* url.
Author
Discussion

BliarOut

Original Poster:

72,863 posts

270 months

Wednesday 4th April 2007
quotequote all
Does anyone have a bit of code that obscures the true url in your browser window.... I just want something scrolling in the bottom left corner of the browser as my personal site is a redirect and I don't want people to see....

I know the old porno sites used to do this but I can't find the code snippet I used to use at the mo paperbag

JoolzB

3,549 posts

280 months

Wednesday 4th April 2007
quotequote all
I didn't think you could do that without URLRewriting/virtual dirs etc. Although I stand to be corrected. The easiest way I would have thought is to hide the address bar.

Plotloss

67,280 posts

301 months

Wednesday 4th April 2007
quotequote all
Frames old love.

JoolzB

3,549 posts

280 months

Wednesday 4th April 2007
quotequote all
Plotloss said:
Frames old love.

That'd do it, rather than a redirect?

BliarOut

Original Poster:

72,863 posts

270 months

Wednesday 4th April 2007
quotequote all
Plotloss said:
Frames old love.

I'm already in a frame thanks to my current host.... There's definitely a way to do it with JS but I'll be buggered if I can remember it.

Altrezia

8,742 posts

242 months

Wednesday 4th April 2007
quotequote all
I dont think you can do it with JS, on a security basis, same as not being able to pre-populate a <input type="file"

PetrolTed

34,468 posts

334 months

Wednesday 4th April 2007
quotequote all
Not possible with javascript I'd say.

Frames are your friend or one of the redirects available under *nix or isapiredirect on IIS.

BliarOut

Original Poster:

72,863 posts

270 months

Wednesday 4th April 2007
quotequote all
I had to make do with hiding the status bar text in the end as it looks like browsers are a bit more secure these days!

I just didn't want people to see the true url as they roll over my rollovers.

I knew all that porn surfing wouldn't be in vain hehe

I've replaced the <> brackets with [] brackets so it will post.


[script]
function hidestatus(){
window.status=''
return true
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

document.onmouseover=hidestatus
document.onmouseout=hidestatus
[/script]

Plotloss

67,280 posts

301 months

Wednesday 4th April 2007
quotequote all
Erm, wouldnt relative rather than absolute paths do the same thing?

BliarOut

Original Poster:

72,863 posts

270 months

Wednesday 4th April 2007
quotequote all
I'm using relative paths, but my (cheapie) domain hosting solution prevents me from doing things how I want...

To navigate I have to put www.mybusinesssite/mypersonaldirec as the link, not the usual www.mypersonalsite/filename.html

Yes, it's poo but hiding the status bar works for now.