Where Was a File Downloaded From? Find Its Source
In this article
To find where a file was downloaded from, check its Properties dialog (Windows) or Get Info window (macOS), which often lists the source URL under the Origin or Where from field. If that field is missing or blank, you can extract the download source from the file's metadata, browser history, or by using command-line tools that read extended attributes.
Why the Source Isn't Always Obvious
When you download a file, your operating system or browser may record where it came from, but this information is not always visible. The source can be stored in different places depending on the file type, the browser used, and the operating system. For example, a PDF downloaded from a website might have the URL embedded in its metadata, while an executable file might have the source stored in an NTFS alternate data stream (Windows) or an extended attribute (macOS).
Additionally, some download managers and browsers strip this metadata to protect privacy, so the absence of a source doesn't necessarily mean the file was not downloaded from the internet — it might just mean the information was not saved.
How to Check File Properties on Windows
Windows stores download source information in the file's Zone.Identifier alternate data stream, which is created when the file is downloaded from the internet. To view it:
- Right-click the file and select Properties.
- Look at the General tab. If the file was downloaded, you'll see a message like "This file came from another computer and might be blocked to help protect this computer."
- Click Unblock if you trust the source, or click Details (if available) to see the Origin field with the full URL.
If the Origin field is not visible, you can use PowerShell to read the Zone.Identifier stream directly. Open PowerShell and run:
Get-Content -Path "C:\path\to\file.exe" -Stream Zone.Identifier
This will show lines like HostUrl= followed by the download URL. If the stream doesn't exist, the file was either not downloaded via a browser or the metadata was removed.
How to Check on macOS
macOS records download sources in extended attributes, specifically the com.apple.metadata:kMDItemWhereFroms attribute. To view it:
- Right-click the file and select Get Info.
- Look for the More Info section. If the file was downloaded, you'll see a line like "Where from:" with the URL.
If the info isn't shown, open Terminal and run:
xattr -p com.apple.metadata:kMDItemWhereFroms /path/to/file
This outputs a binary plist, but you can read it more easily with:
mdls -name kMDItemWhereFroms /path/to/file
This will display the URL(s) as plain text. If the attribute is missing, the file may have been created locally or the metadata was stripped.
Using Browser History and Download Managers
If the file's metadata is empty, your browser's download history is the next best place to look. Most browsers keep a record of every download with the source URL, file name, and timestamp.
- Chrome/Edge: Go to
chrome://downloadsoredge://downloads. The list shows the file name and the source site. Clicking the site name opens the URL. - Firefox: Press Ctrl+J (Windows) or Cmd+J (macOS) to open the Downloads window. Right-click a file and select Copy Download Link.
- Safari: Go to History > Show All History, then search for the file name. The entry will show the page it was downloaded from.
If you used a download manager like Internet Download Manager or JDownloader, check its history or log files — they often store the full URL for each file.
When Metadata Is Missing or Incomplete
There are several reasons why the source might be absent:
- File transferred via email or USB: These files don't have download metadata because they weren't downloaded from the web.
- Browser extensions or privacy tools: Some extensions strip metadata to prevent tracking.
- File re-saved or edited: Opening and saving a file (e.g., in an image editor) often removes the original download attributes.
- Downloaded via command line: Tools like
wgetorcurldon't always add the source to the file's metadata.
In these cases, you may need to rely on your browser history or the website's own download logs (if you have access). If you can't find the source, you can try searching for the file's name or hash online — many files have unique identifiers that can lead you to the original download page.
Comparing Methods: Which One to Use?
The best method depends on your operating system and how the file was obtained:
- Windows + browser download: Use Properties → Details or PowerShell. The Zone.Identifier is almost always present unless stripped.
- macOS + browser download: Use Get Info or Terminal. The WhereFroms attribute is reliable for Safari, Chrome, and Firefox.
- Any OS + download manager: Check the download manager's history, not the file properties.
- File already moved or renamed: Metadata usually survives, but if it's gone, browser history is your only option.
For advanced users, third-party tools like strings (on Linux/macOS) can scan the file for URLs, but this is less reliable and may produce false positives.
Frequently Asked Questions
Can I find the download source if the file was downloaded months ago?
Yes, if the metadata wasn't stripped and the file hasn't been re-saved. Browser history may have been cleared, but the file's Zone.Identifier or WhereFroms attribute persists until the file is deleted or the metadata is explicitly removed.
Why does the Properties dialog show "This file came from another computer" but no URL?
This message appears when the Zone.Identifier stream exists but doesn't contain a HostUrl value. This can happen if the file was downloaded from a local network share or if the browser didn't record the full URL. You can still see the zone ID (usually 3 for Internet) but not the exact source.
Does checking the source reveal the exact page or just the domain?
Usually the full URL is stored, including the page path. For example, https://example.com/downloads/software.exe. However, some browsers may only store the domain if the download was initiated from a redirect.
Is it possible to remove the download source from a file?
Yes. On Windows, you can unblock the file via Properties (which removes the Zone.Identifier) or delete the stream using PowerShell. On macOS, you can use xattr -d com.apple.metadata:kMDItemWhereFroms /path/to/file. This is often done for privacy or to avoid security warnings.
Can I find the source of a file downloaded on my phone?
On Android, you can check the Downloads app — long-press the file and select "Details" to see the URL. On iPhone/iPad, the Files app doesn't show the source, but you can check Safari's download history or the app that downloaded the file.
What if the file was downloaded from a link that no longer exists?
The metadata still contains the original URL, even if the link is dead. You can use the URL to identify the site, but you won't be able to re-download the file from that exact link. You might find the same file elsewhere by searching for its name or hash.