Redirect to default homepage in a Wifi Network

Is there a way to set a default homepage for a Wifi Network, maybe tweaking the router configuration? My router is TP-Link TL-WR541G.

I mean, when someone just connects to the wifi and first open the browser.

Chillispot is a close solution. However, I only need to redirect WLAN hosts to a public web page when they open the browser for first time, not for login or revenue stuff.


Solution 1:

You'll want/need to implement a captive portal. See here for a description:

http://en.wikipedia.org/wiki/Captive_portal

Solution 2:

In order to route my Wi-Fi traffic to a local web page which shows :

Yes, it works!

,I am using Linux IPTABLES:

#iptables -t nat -A OUTPUT -p tcp -j DNAT --to 192.168.0.1:80

Solution 3:

As far as I know, this functionality can only be provided by the router that provides the actual gateway to the web. Consumer-grade routers generally don't provide this functionality.

However, some inexpensive consumer-grade routers can have their firmware replaced with something much more powerful. DD-WRT is one example. Unfortunately, it appears that your specific router isn't supported.

If you choose to get a different router and play with DD-WRT, then you can set up a Captive Portal using Chillispot.

Good luck :)