5

Please I need some help on how to configure this.

I have little bakery and would like to create a local webserver to host a digital menu. Customers would access it via wireless router from any device with wi-fi connection, such as smartphones, tablets, notebooks, etc.

This wireless router would not be connected to any ISP, it would be connected only to the local network.

I would like customers that are connected to my wireless router and open internet browser, are automatically redirected to the local webserver URL with the digital menu, just like when you connect to the public hot-spot and forced to subscribe to any service.

So the elements in the network would be: client devices with wi-fi, wireless router and a PC with webserver.

John Gardeniers
  • 27,262
  • 12
  • 53
  • 108
Ernesto
  • 51
  • 1
  • 1
  • 2
  • Thanks all for the answers but I'm really looking for a simple solution using a regular wireless router and a Windows PC with a Apache webserver configured. I wouldn't like to install any further sofware or change the PC Operating System. Is this something possible? – Ernesto Jun 02 '11 at 17:48

4 Answers4

2

You could do this if you had wifi gear that supported redirecting all requests to an auth page and then just make the auth page your menu instead of the actual auth page. The problem with this is that many phones will only use the wifi connection when both wifi and 3g/4g is available.

I know that I would avoid a place that hijacked my connection like that and I was forced to change settings on my phone to browse the web.

MDMarra
  • 100,183
  • 32
  • 195
  • 326
  • 1
    But isn't this how virtually all businesses do it? Every public company from Taco Bell to Whole Foods redirects you and makes you click on their "I agree" button as the first page you see when you establish a WiFi connection on their public network. Or am I misunderstanding? – Gojira Mar 05 '14 at 13:57
  • 2
    @GojiraDeMonstah a captive portal that requires users to agree to Terms of Service is different than capturing all web requests and redirecting them to a store's menu. – MDMarra Mar 05 '14 at 14:00
  • Agreed. I was thinking of captive portal. – Gojira Mar 05 '14 at 18:57
1

You can hack things together with DHCPd, IPTables/IPFW/pf and some creative CGI or PHP scripts, but the traditional thing to do is to get a pre-built solution like the one from BlueSocket. Less work / maintenance long-term.

voretaq7
  • 79,345
  • 17
  • 128
  • 213
0

Often wireless access points have a setting similar to "hotspot settings" or "enable HTTP redirect". This would allow you to initially send them to your local web server (probably using the IP address rather than a DNS entry".

KCotreau
  • 3,361
  • 3
  • 19
  • 24
  • Is it possible to do it on a regular wireless router (example: D-link DI-524)? Or only on Access Points? – Ernesto Jun 01 '11 at 20:57
0

You probably want a Captive Portal either running on a PC or running on WRT firmware.

Check out this question

They recommend using CoovaChilli it runs on a Linksys WRT54G using the Open-WRT firmware.

JamesBarnett
  • 1,129
  • 8
  • 12