Yes, a website can trigger an automatic download when you visit it, but modern browsers have protections in place. Typically, the file will be saved to your Downloads folder, but it won't run or open by itself. Dangerous file types like .exe or .zip often trigger warnings or are blocked.
Even if the file doesn't run automatically, it can still pose a risk if the user opens it later. Therefore, it's important to keep your browser updated, avoid suspicious websites, and check your download settings to configure your browser to ask you before downloading files.
Here's how to make Microsoft Edge ask before downloading files:
- Open "Settings and more (Alt + F)" and select "Settings";
- In the left panel, click on "Downloads";
- Find the option labeled "Ask where to save each file before downloading" and toggle it on.
Feel free to ask back any questions.