Fix Windows that has redirect that will not stop
We'll remove extensions, reset the browser, check the hosts file, and run Malwarebytes—or tell you when to call a pro.
What you'll need
- Administrator account (for hosts file)
Step-by-step diagnostic
Quick triage — pick your path
Get started
Choose the option that matches what you see. You can jump straight to that section.
Show full guide
Steps
Goal: Remove extensions, reset the browser, check the hosts file, and run Malwarebytes.
- Remove unknown extensions. Reset browser. Check hosts file. Run Malwarebytes.
- Good: Redirects stop. You are done.
- Bad: Boot Safe Mode and scan.
Remove extensions
Goal: Remove extensions that cause redirects.
- Chrome or Edge: Settings, Extensions. Remove unknown extensions. Reset browser.
- Good: Redirects stop.
- Bad: Check hosts file.
Check hosts file
Goal: Remove redirect entries from the hosts file.
- Notepad as Administrator. Open C:\Windows\System32\drivers\etc\hosts. Remove any line except localhost. Save.
- Good: Hosts clean. Run Malwarebytes.
- Bad: Remove suspicious lines and save.
When to get help
Call a technician if:
- Redirects persist after these steps.
- You are unsure about editing the hosts file.
- You suspect malware you cannot remove.
Verification
- Typing a URL goes to the correct site.
- Search results do not redirect to ads.
- Hosts file has only localhost entries.
Escalation ladder
Work from the device outward. Stop when the problem is fixed.
- Remove extensions Remove unknown browser extensions.
- Reset browser Reset browser settings.
- Check hosts file Remove suspicious hosts entries.
- Malwarebytes Run Malwarebytes full scan.
- Call a pro Redirects persist.
What to capture if you need help
Before calling support or posting for help, have these ready. It speeds everything up.
- Which sites redirect
- Extensions installed
- Hosts file contents
- Steps already tried
Did you remove unknown extensions?
Extensions often cause redirects.
You can change your answer later.
Remove extensions
Does hosts file have suspicious entries?
Hosts file can redirect sites.
You can change your answer later.
Clean hosts file
Run Malwarebytes
Reviewed by Blackbox Atlas
Frequently asked questions
- Why would redirects not stop?
- Malicious extensions, browser hijacker, or hosts file modification. Remove extensions, reset browser, check hosts file, run Malwarebytes.
- What is the hosts file?
- A file that maps domain names to IP addresses. Malware can add entries to redirect you. Normal hosts has only localhost.
- When should I call a technician?
- When redirects persist after removing extensions and running Malwarebytes, or you are unsure about editing the hosts file.
Rate this guide
Was this helpful?
Thanks for your feedback.