Like every other website on the planet, SmallNetBuilder uses cookies. Our cookies track login status, but we only allow admins to log in anyway, so those don't apply to you. Any other cookies you pick up during your visit come from advertisers, which we don't control.
If you continue to use the site, you agree to tolerate our use of cookies. Thank you!

Wi-Fi Router Charts

Click for Wi-Fi Router Charts

Mesh System Charts

Click for Wi-Fi Mesh System Charts

Setting Up NoCatSplash

So that you end up with at least one working solution from this How To, I'll walk through setting up NoCatSplash.

Before configuring the settings, you need to create a web page (.html file) for the splash screen. You can then upload it to the router or host it on a website. After connecting to the hotspot, a user must click the button (such as I agree) on your splash screen before browsing the web.

Use code similar to the following to create a form on the splash page:

<p><b><font size="5">Welcome to $GatewayName!</font></b></p>
<p><b><font size="2">Read the following terms and conditions,
and hit the I Agree to proceed.</font></b></p>

 <p><font size="2">...</font></p>

<form name="login" method="post" action="">
<input type="hidden" name="accept_terms" value="yes" />      
<input type="hidden" name="redirect" value="$redirect">
<input type="hidden" name="mode_login">
<input type="submit" value="I Agree">

You can use the $redirect variable to send users to a site of your choice (instead of the URL they originally tried to access) after they "authenticate" by clicking the "I Agree" button.

Another optional variable is $GatewayName, which displays the value of the Gateway Name (defined later in the settings) on the splash page.

Now you need to configure the settings:

Example of the NoCatSplash settings in DD-WRT.
Click to enlarge image

Figure 5: Example of the NoCatSplash settings in DD-WRT.

Gateway Name: This value can be displayed on the splash page when using the optional variable, $GatewayName.

Home Page: Enter your website address, if you have one.

Allowed Web Hosts: List of domains (separated by a single-space) that users can access before hitting the button. If the splash page is on a website, you must enter its domain.

Document Root: The directory on the router where the SplashForm (or splash webpage) is located. If you’re hosting the splash page on a website you can ignore this field.

Splash URL: Enter the webpage address of your splash page, if hosting on a website; otherwise leave blank if uploading to the router.

Exclude Ports: Specify TCP ports (such as 25 for SMTP) to block from the hotspot users. Separate each port number by a single-space.

MAC White List: List of MAC addresses (separated by a single-space) that have unrestricted access. You can for example, enter the MAC addresses of your radio cards so you are not blocked from any ports you’ve excluded.

Login Timeout: Specifies how often (in seconds) the splash screen is displayed. For example, you could set this to 86400 seconds, so every 24 hours the user will see the splash page and have to click the button again.

Verbosity: This specifies the amount of actions that’s written to the syslogd log. The default value of 5 logs most actions and should be fine for most situations. However to log everything set this to 10, or 0 to disable logging.

Route Only: When enabled, your router won’t run NAT. Unless you have a strictly routed network, the default setting (disabled) should be fine.

Figure 6 shows the end result of the splash page created with the code given earlier and the settings configured in Figure 5.

Example of the DD-WRT splash page

Figure 6: Example of the DD-WRT splash page.

Support Us!

If you like what we do and want to thank us, just buy something on Amazon. We'll get a small commission on anything you buy. Thanks!

Don't Miss These

  • 1
  • 2