Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?


locked by HopelessN00b Apr 1 '15 at 19:21

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center.

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

Questions on Server Fault are expected to relate to 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. – The Archetypal Paul May 11 '09 at 9:48
@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

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

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

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.


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.

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

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


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.

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

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

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

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.

... 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

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.

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

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.

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

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

enter image description here


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