Home About Me

Recovering DD-WRT Web Access After Disabling the Router’s Web Interface

After setting up DDNS, visiting the bound domain name unexpectedly opened the DD-WRT router management page. That is obviously not ideal, because exposing the router login interface through a public domain is unsafe.

The correct way to avoid this is not to disable the local web interface completely, but to turn off remote web access to the router. In DD-WRT, this can be adjusted in the administration settings. Once remote access is disabled, visiting the DDNS domain will no longer show the router control page.

DD-WRT remote access setting

The troublesome part is what happens if Web Access is disabled by mistake. If both HTTP and HTTPS under the Web Access protocol options are unchecked, the router’s management page may no longer open through the LAN IP address. Resetting DD-WRT to factory defaults would fix it, but that also means reconfiguring PPPoE, the wireless password, port forwarding, and other settings, which is unnecessary if Telnet still works.

A simpler recovery method is to start the DD-WRT web service manually through Telnet.

Open CMD on the computer, then connect to the router with Telnet:

telnet 路由ip地址

Log in with the router username and password, then run:

httpd -h /www

This starts the web interface again. DD-WRT’s official Web Interface documentation also gives this method:

https://wiki.dd-wrt.com/wiki/index.php/Web_Interface

There is also another commonly mentioned command that may work in the same situation:

httpd -p 80

So if the DD-WRT control page becomes unreachable after accidentally disabling Web Access, do not rush to reset the router. As long as Telnet access is still available, starting httpd manually should restore the web management page.