How many characters will your browser let you enter into the address bar?

Dude111

Golden Member
Jan 19, 2010
1,497
7
81
I was just fooling about and wondered if there was a limit to how many characters you could enter in the address bar field...

I tried it in MyIE2 and it let me enter 24,155 characters before beeping I was @ the end!!! (I put the whole string in notepad after and of course you know notepad tells you how many characters there are)


24,155??? -- Wow no one would EVER use that amount of characters!!


IE6 only lets me enter 2048 characters while VLCs address bar lets me enter 30,001 characters!!!
 

Dude111

Golden Member
Jan 19, 2010
1,497
7
81
Really 1.5Mil?

If so,yours is the most so far and IE6 is the least...


Anyone have other versions of IE they can check?? (Just for shits and giggles) -- Maybe all IE versions are capped @ 2048 I dunno.......
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,698
4,659
75
I just got over 2M in Firefox. Then the bar stopped displaying characters, except about half of one. Then it locked up.

You might get more if you disabled the Awesome Bar.
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
The various specifications that address URIs actually do not set a length limit, stating only that servers should be able to handle the full URI for any resource they serve. IE6 is certainly the most restrictive at ~2048 characters. With the other browsers you are most likely running into limits on the buffer length of the underlying edit control.
 

Dude111

Golden Member
Jan 19, 2010
1,497
7
81
Ya its interesting....... Who would ever have a legit reason to use a 2000+ character address
icon10.gif
 

Red Squirrel

No Lifer
May 24, 2003
70,592
13,807
126
www.anyf.ca
Was curious to see what happens if I actually try to submit such a long url to a server. (one of my own)

At over a mil FF won't let me actually submit the URL. I brought it down to 700kish, and it let me, and I get this:

Code:
Request-URI Too Large

The requested URL's length exceeds the capacity limit for this server.
Apache/2.2.9 (Fedora) Server at borg Port 80

I imagine as an argument on some poorly written php scripts huge urls like this could be a disaster though.

#1 rule of security: NEVER TRUST USER INPUT! People like me will screw up your day. :p
 

Dude111

Golden Member
Jan 19, 2010
1,497
7
81
Quite interesting!!! (Exceeds the limit for this server)

Im sure they didnt ever think anyone would exceed it!!
 

SNJ

Member
Dec 20, 2013
91
7
36
have you ever used internet banking or anything else that required encrypted URLs?

Obfuscating URLs often run into many hundreds, if not thousands of characters.