How to Fix a Hacked Router
In this article
Yes, you can usually fix a hacked router by performing a factory reset, updating the firmware, and changing all passwords. A hacked router can redirect your traffic, inject malicious ads, or steal your data. The steps below will restore your router to a clean state and lock it down against further attacks.
What You'll Need
- Physical access to your router (to press the reset button)
- A computer or phone connected to the router (via Wi-Fi or Ethernet)
- Your router's default login credentials (often printed on the router label or in the manual)
- A web browser
Step-by-Step
- Disconnect your router from the internet. Unplug the modem or disconnect the Ethernet cable that connects your router to the internet. This stops the attacker from accessing your router while you work.
- Perform a factory reset. With the router powered on, use a paperclip or pen tip to press and hold the reset button (usually on the back or bottom) for 10–30 seconds until the lights blink or the router reboots. This wipes all custom settings, including any malicious configurations. Note: this will erase your Wi-Fi name and password, so you'll need to set them up again.
- Log in to the router's admin panel. After the router reboots, connect to it via Ethernet (preferred) or Wi-Fi (the default network name will be on the router label). Open a browser and enter the router's IP address (commonly 192.168.1.1 or 192.168.0.1 – check the label). Use the default username and password (often “admin”/“admin” or “admin”/“password”). If the default doesn't work, check the manual or the manufacturer's website.
- Change the admin password immediately. Go to the administration or management section (often under “System” or “Maintenance”) and set a strong, unique password. Do not reuse this password anywhere else.
- Update the router's firmware. Look for a “Firmware Update” or “Router Upgrade” option in the admin panel. If available, check for updates and install the latest version. If your router doesn't have an automatic update feature, download the firmware from the manufacturer's official website and upload it manually. This patches vulnerabilities the hacker may have exploited.
- Change your Wi-Fi network name (SSID) and password. In the wireless settings, set a new SSID (avoid using personal information) and a strong WPA2 or WPA3 passphrase. Disable WPS (Wi-Fi Protected Setup) if it's enabled, as it's a common attack vector.
- Disable remote management. Look for “Remote Management,” “Remote Access,” or “Administration from WAN” and turn it off. This prevents outsiders from accessing your router's settings from the internet.
- Review connected devices. In the DHCP client list or “Attached Devices” page, check for any unknown devices. If you see any, note their MAC addresses and block them if possible. If you can't block them, change your Wi-Fi password (step 6) to kick them off.
- Reconnect your router to the internet. Plug the modem back in or reconnect the Ethernet cable. Wait for the connection to establish.
- Change your Wi-Fi password again (optional but recommended). If you suspect the attacker had your Wi-Fi password, change it once more after you've secured the admin panel.
- Update all connected devices. Run security updates on your computers, phones, and smart home devices. A compromised device on your network could re-infect the router.
Common Mistakes
- Skipping the factory reset. Just changing the admin password may not remove malicious settings like DNS changes or port forwards. A full reset is essential.
- Using a weak admin password. “admin” or “password” is easily guessed. Use a long passphrase with numbers and symbols.
- Not updating firmware. Outdated firmware often has known vulnerabilities. Always install the latest version.
- Leaving remote management on. This is an open door for attackers. Always disable it unless you absolutely need it (and then use a VPN).
- Ignoring other devices. If a device on your network is infected, it can re-hack your router. Scan and clean all devices.
Tips
- Use a unique admin password that you don't use for any other account.
- Enable WPA3 if your router supports it; otherwise use WPA2 with AES encryption.
- Disable WPS and UPnP (Universal Plug and Play) if you don't need them – they can be exploited.
- Consider setting up a guest network for smart home devices to isolate them from your main devices.
- Write down your new settings and store them securely (e.g., in a password manager).
- If your router is more than 5 years old and no longer receives firmware updates, consider replacing it with a newer model that gets security patches.
Troubleshooting
If you can't log in after the factory reset: Double-check the default credentials on the router label. If they don't work, try “admin” with a blank password, or look up the model online on the manufacturer's support page. If that fails, do another factory reset and try again.
If the router doesn't respond to the reset button: Some routers require holding the reset button for 30 seconds or longer. Try unplugging the router, holding the reset button, and plugging it back in while still holding the button for 15 seconds. If that doesn't work, consult the manual.
If you can't find the firmware update option: Search the manufacturer's website for your exact router model. Download the firmware file and look for a “Manual Update” or “Browse” button in the admin panel. Follow the manufacturer's instructions carefully.
If the router still behaves strangely after a reset: The attacker may have modified the router's firmware (flashed a custom firmware). In that case, download the official firmware from the manufacturer and flash it manually. If you're unsure how, contact your ISP or the manufacturer's support.
If you suspect your ISP is involved: Some ISPs provide routers with remote management enabled. If you can't disable it, contact your ISP and ask them to disable remote management or replace the router.
Frequently Asked Questions
How do I know if my router is hacked?
Common signs include: slow internet, unexpected redirects to unknown websites, pop-up ads, unknown devices on your network, changed router settings, or your Wi-Fi password not working.
Can a factory reset remove all malware from my router?
Yes, a factory reset removes most malware, but not all. Some sophisticated malware can survive a reset by hiding in the firmware. In that case, you need to flash the official firmware manually or replace the router.
Will I lose my internet connection after a factory reset?
You'll lose your custom Wi-Fi settings, so you'll need to reconnect your devices to the new network. Your internet connection itself should work once you reconnect the router to the modem and configure the connection type (usually DHCP, which is default).
Should I contact my ISP if my router is hacked?
Yes, especially if the router is provided by your ISP. They can help you reset it and may offer a replacement if it's compromised beyond repair.
How can I prevent my router from being hacked again?
Keep the firmware updated, use strong admin and Wi-Fi passwords, disable WPS and remote management, and regularly check connected devices.
Is it safe to use a hacked router after fixing it?
Yes, as long as you've done a factory reset, updated firmware, and changed all passwords. However, if you have any doubts, consider replacing the router.