Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

The "http://" prefix to regular consumer websites is unnecessary and only complicates. Anyways 99% of the sites people visit use the HTTP protocol, so why do you have to tell the browser that? It should guess it!

I want to hide the "http://" prefix everywhere, in the address/location bar URL, on Hyperlink tips, in the status bar, basically everywhere in a browser.

Any Firefox Add-on to do this? Any other way for another browser?

share|improve this question

closed as off topic by Zypher Sep 30 '11 at 17:05

Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Where do you want to hide it? In the browser address bar, or somewhere else? And as others have pointed out, you don't have to tell the browser that so it's not entirely clear what you're after here. –  Paul May 11 '09 at 9:48
2  
@hmemcpy's answer indicates that this can be done, but why? –  ceejayoz May 11 '09 at 13:38
    
"why do you have to tell the browser that" <--- you don't. All modern browsers will assume http:// if you do not explicitly type it. Like everyone else, I'm not entirely sure what your reason is for wanting to do this. I don't see what you could gain from it. –  ThatGraemeGuy Sep 3 '10 at 13:23
add comment

10 Answers 10

up vote 21 down vote accepted

There is a great add-on for Firefox called Locationbar² that does just what you want (and some!). One of its main features is to break the URL into breadcrumbs.

In the options dialog you can specify what protocols you'd like to hide:

enter image description here

Here is what mine looks like:

enter image description here

share|improve this answer
2  
Very nifty, +1! –  ceejayoz May 11 '09 at 13:37
    
Amazing! Thanks so much. I've searched for years and never found this! –  Jarvis May 12 '09 at 5:25
    
There's just one problem. The hidden protocols reappear when editing and on rollover. So its not totally invisible :) –  Jarvis May 12 '09 at 5:53
1  
Well... yeah :) But now I'd like to ask as well, why do you want to have it disappear completely? –  Igal Tabachnik May 12 '09 at 6:57
    
Great tip - Thanks! –  cmjohns May 12 '09 at 12:59
add comment

The HTTP:// string is not a prefix of the URL, it's part of the URL. Which is why you can't (and shouldn't) hide it, since the application is displaying the URL.

share|improve this answer
add comment

99% might use the HTTP protocol, but there's a lot more than 1% that use HTTP over TLS (ie HTTPS) and they're on different ports, so the browser needs to know which port to open.

Also, the browser does guess it.

share|improve this answer
    
I know this, I wanted a way to HIDE the http:// prefix if that was in the current URL. –  Jarvis May 11 '09 at 9:42
    
So, you want to control the display of the http:// prefix in the address bar of the users browser ? –  Dave Cheney May 11 '09 at 10:18
    
Exactly. Hide it. Permanently, unless the current URL is not using the HTTP protocol. –  Jarvis May 11 '09 at 10:20
    
In the case of HTTPS, it could just display a lock icon someplace. –  Jarvis May 11 '09 at 10:23
    
@Jenko: for https i'd like that browsers shows "https" and not only a lock. the lock can be spoofed by a favicon. –  petrus Aug 20 '11 at 8:41
add comment

Google Chrome 6 now does precisely what you asked for. It was released yesterday (2 September 2010). This question in Chrome 6

share|improve this answer
add comment

Most browser do guess at it. If you enter an address without HTTP:// prefix it will add it on for you.

It would be a browser feature to hide this, and as far as I know, no browsers offer this.

share|improve this answer
    
I know this, I wanted a way to HIDE the http:// prefix if that was in the current URL. –  Jarvis May 11 '09 at 9:42
add comment

There is no way to do this, that I know of, on any of the modern browsers.

share|improve this answer
    
What a pity! Wish someone would write a Firefox addon to do just that! It would be the most popular addon of all time and they might just consider implementing it into the browser. –  Jarvis May 11 '09 at 10:19
    
This is a GOOD THING. The ability for web sites to change what is appearing in the address bar would just make phishing so much easier. –  Richard May 11 '09 at 12:25
1  
Richard, I think Jeremy is after a client-side setting for this. For example, with Google Chrome, http is displayed grey, whilst https is displayed green (or red) - I think he wants to take this a step further and simply only show non-HTTP protocols (and possibly using an icon rather than the code/abbr). –  Peter Boughton May 11 '09 at 12:32
    
@Peter: Exactly! –  Jarvis May 12 '09 at 5:24
add comment

I'm guessing you're thinking something like the iPhone css tricks which scroll the page down a dozen pixels to obscure the url header.

This is not possible with any browser that is currently shipping, even if it was, you wouldn't be able to control that setting via the javascript DOM.

The closest I can think is with a javascript driven popup, which can suggest to the browser that it should hide the url bar. However popups are very much out of vogue.

share|improve this answer
3  
... and newer browsers ignore the hide address bar in popup option to avoid phishing and other attacks. –  Richard May 11 '09 at 12:32
    
Exactly, so that technique is unlikely to be effective. –  Dave Cheney May 11 '09 at 13:27
add comment

If you're unhappy with the browsers out there, roll your own. Firefox and Chrome are both open-source, so most of the work is already done for you.

share|improve this answer
    
Wouldn't count this as helpful. –  stevenvh Sep 3 '10 at 12:56
    
I'm not saying it to be an ass; I'm saying it in case he legitimately hasn't considered it. –  gWaldo Sep 3 '10 at 14:48
add comment

My vote is definitely for the new Google Chrome. It will hide the "http://"; however, show https, ftp or any other protocol that you feed it.

share|improve this answer
    
Please add comments to specific questions. This is not a forum; please use the answer button only to Answer the initial Question. Thank you. –  Chris S Sep 3 '10 at 13:02
add comment

Just thought I'd add that Firefox 7 now does this by default also -- though it's still in beta.

enter image description here

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.