大网数据广告活动
网站运营与故障问答

Can a URL that is not linked to from anywhere be discovered?

· 52CE 我爱测

Let's say I have a URL that is not linked to from anywhere, and let's say the file portion is very long, so that it's unlikely it could be accidentally entered. Something like sdfnWERvwrw4529vFWGgwgGW42.htm . I'm not talking abou…

问题原文

原帖链接 · felwithe · CC BY-SA 4.0

Let's say I have a URL that is not linked to from anywhere, and let's say the file portion is very long, so that it's unlikely it could be accidentally entered. Something like sdfnWERvwrw4529vFWGgwgGW42.htm.

I'm not talking about the domain-- those care found through registrars. And assume that my site does not give out directory indexes (which I think has been the default in Apache for some time). And it's not indexed anywhere on the site, for example in a site map. (Since I built this server myself from the ground up, it has very little 3rd party software and I know it's not doing anything like that.)

A similar question was asked here and here but they're not the same questions; they are asking about how the site itself is discovered. I'm asking about a single page.

(If you want to know, it's a page where I keep some information that's not really sensitive, that I use for convenience, but I still don't want public.)

已采纳解答

原帖链接 · Stephen Ostermiller · CC BY-SA 4.0

There are many ways that secret URLs may be discovered:

  • Anybody with access to the URL has the option of sharing the URL or linking to it.
  • Web servers are often configured to create listings of all files in a directory by default. Your secret file may end up in such a listing.
  • Web servers are often configured to create sitemaps or RSS feeds of URLs. Your secret URLs could inadvertently be included.
  • Any web log analysis or analytics may leak URLs if reports are publicly available or insecure.
  • Your page may use 3rd party resources such as scripts, CSS, or images that send the URL to those third parties as referrers when the page is viewed in a browser.
  • Your page may link to other sites and the URL is sent to the other sites as a referrer when the link is clicked. Many sites publish a list of referring URLs which allows search engines to find the secret URL.
  • URLs are visible in the browser address bar. Anybody shoulder surfing will be able to see the URL and know its secret.
  • If you email your URL it may be scanned by automated systems such as those at Gmail.
  • Browsers could be configured to send all URLs viewed by users to third parties such as the browser maker, or the author of extensions. However, browsers don't typically come configured like this because major browsers want to respect privacy.
  • HTTP URLs are sent in plain text over the internet, anybody between your client and your server could read the URL. Many ISPs scan all traffic and record the URLs that are visited.
  • Malware on your user's computer could see what URLs are being browsed or find URLs in the browser cache
  • Malware on your server could see what URLs are being served or find URLs in your server logs.

Of those, URLs leaking through referrers is the most common way that secret URLs become public and subsequently get indexed by search engines.

Secret URLs can sometimes work OK, but it is not as good as using proper authentication over HTTPS.

For further reading:

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2018-05-03)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。