views:

3007

answers:

7

Are all URL's encrypted when using SSL(https) encryption? I would like to know because I want all URL data to be hidden when using SSL(https).

If SSL gives you total URL encryption then I don't have to worry about hiding confidential information form URLs.

+20  A: 

Yes, the SSL connection is between the TCP layer and the HTTP layer. The browser and webserver first establish a secure encrypted TCP connection (via the SSL/TLS protocol) and then the browser will send the HTTP request (either GET or POST) over that encrypted TCP connection.

Marc Novakowski
I am not sure I would say that SSL is at the TCP layer. SSL really rides on top of TCP and presents an encrypted socket channel to the normal application protocol. In this case, HTTP.
Tall Jeff
You are correct, SSL does sit between the TCP and HTTP layers. I've edited my response to make it clearer. Thanks!
Marc Novakowski
It is still worth noting the thing mentioned by @Jalf in the comment on the question itself. URL data will also be saved in the browser's history, which may be insecure long-term.
Michael E
+2  A: 

Entire request and response is encrypted, including URL.

Note that when you use HTTP Proxy, then proxy knows address of target server, but doesn't know requested path on this server. (i.e. request and response is always encrypted)

Peter Štibraný
A: 

Look here

asvela
Even though the link may be helpful a little more content may be appropriate.
John Nolan
I will remember next time :)
asvela
Additionally, the provided link doesn't answer the poster's question... boo!
greg7gkb
+3  A: 

I'm going to take a leap here and assume you mean the "GET" portion of the https request.

In that case, yes and no. The server address portion of the URL is obviously not encrypted since it is used to set up the connection.

Everything else is encrypted in an HTTPS connection. But if you are using GET instead of POST then the user will still be able to cut and paste the URL out of the location bar, and you will probably not want to put confidential information in there that can be seen by anyone looking at the screen.

All that said, you should be careful of your terminology. To quote a famous swashbuckler: You keep using that word (URL) I do not think it means what you think it means....

SoapBox
Would like to +1 this, but I find the "yes and no" misleading - you should change that to just point out that the server name will be resolved using DNS without encryption.
Software Monkey
Wait, where is the author using the word URL in an incorrect sense?
greg7gkb
+7  A: 

As the other answers have already pointed out, https "URLs" are indeed encrypted. However, your DNS request/response when resolving the domain name is probably not, and of course, if you were using a browser, your URLs might be recorded too.

Zach Scrivena
+1  A: 

Yes.

This question was asked on Google Answers in 2006 and was answered in detail:

http://answers.google.com/answers/threadview/id/758002.html

dandv