URL protection - what is considered a secure unrecognized URL?

I was just thinking about the URLs of my current web project. The user can access various resources, such as images using the website. URL-addresses look like this: http: // localhost: 2143 / p / AyuducjPnfnjZGfnNdpAIumehLiWaYQKbZLMeACUqgsYJfsqarTnDMRbwkIxWuDd

Now I really need high performance, and one way could be to lower the extra round trip to the authentication database and simply rely on a URL that should be undeniable.

Google does this with Picasa Web Albums , you can make an album private or unregistered. This provides the album, but not the photo itself. Take this photo of Skagen (Denmark); http://lh4.ggpht.com/_Um1gIFfF614/TQpVMvN3hPI/AAAAAAAANRs/GY5DxrDPHUE/s800/IMG_4074.JPG , this is actually in a private album, but you can all see it.

So what do you think of this? Is a character length of 64 characters "safe"? Are there other approaches?


Suppose I decide to do authentication for each resource request. Users logged onto somedomain.com, where they access them, let them say photo albums. Cookies are deleted to support their authentication.

Actual photos are now served through some form of CDN or storage service at a completely different URL.

How would you support authentication in multiple domains? Say the contents of two albums can be delivered from different servers.

+3
source share
5 answers

Do the math. 64 characters are selected cryptographically randomly (NOT rand ()!) From the alphabet of 62 possible values ​​(26 + 26 + 10: caps / lowercase / numbers) they will give 5.16e + 114 possible values ​​(62 ^ 64). Having tried a million combinations per second, it will take 1.63 + 101 years (moar than googol) to guess the code. This is probably good enough. A shorter one is probably also very good.

+5

64 * 6 ( Base-64, ?) - 384- . , . , , , , , , .

, , , , , ..

+1

"" URL-. , . picasa, , , , . , , . , , , , URL . , "" .

, , "" URL-: . .

,

0

, URL-, , SSL, , , , .. , / ""?

URL- , URL- (, URL-)

0

2- . . , , . , , URL- - , . . .

# 1: CDN , . martona . CDN - , , , .

0

Source: https://habr.com/ru/post/1780733/


All Articles