Community discussions

MikroTik App
 
kchris
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 62
Joined: Wed Oct 27, 2004 2:58 pm

forward users to fill out a web-form

Wed Sep 26, 2007 6:16 pm

hi,

I'm an ISP and want my users to fill out a web-form and then make them able to continoue web-browsing. how is it possible?

previously i made address list and dst-natted all web requests to this form, but this solution is quite unstable.. Is there a better way to do this?
 
csickles
Forum Guru
Forum Guru
Posts: 1255
Joined: Fri May 28, 2004 8:46 pm
Location: Phoenix, AZ
Contact:

Re: forward users to fill out a web-form

Wed Sep 26, 2007 7:06 pm

You could try this...

If using hotspot... ( am going to assume yes )

1) Create a walled garden entry for the web form you want filled out.
2) Reneme ahe default login page for the RouterOS hotspot to something like go.htm
3) Create a simple page on the router that on hotspot connect, sends them to the web form.
4) Edit the "go.htm" page to simply have a " splash screen IE "Sucess" or Thank You" etc and a button to procede (this would be an edited form of the trial button)
5) Make sure the trial function is enabled on the hotspot. And set the appropriate time limits.

You may also want to set some sort of client side flag to verify that the user filled out the form before allowing access to the trial function.. IE set a client side variable on the web form and test for it on the "thank you " screen, If the variable is not correctly set, force them to the web form (this would all be client side) also, I would set the trial button to disabled by default unless the variable condition was satisfied.

Just an idea,,, I have not tried it...

Craig