Posted: Sat Jan 28, 2017 13:35 Post subject: One time redirect traffic for specific URLs
Hello! I work in an small agency where we have one AP. For our intern security because our building is big with more companies inside, near us, i want to achieve this thing:
1) Explanation:
- When any user who is connected to our AP go for dd-wrt.com/page.html (just an example), check if this site is allowed by us, if not, redirect him to one page to inform that we do not allow that site and he is on his own, (our info page do a redirect in some seconds to the requested page automatically).
- I want redirect to be able to check for pages not for domains. If it's possiblle
- The second time when user try to enter on openwrt.org that redirect should not appear again.
2) In Practice:
- I type in browser dd-wrt.com/page.html, router receive, check the page/site and redirect me to info page.
Info page redirect me to openwrt.org after 5 seconds. This time openwrt.org should work and so on until 30 days (example).
How can i do this, first of all i want to know if it's possiblle inside router by firmware to check all incomming site's. Some start info would be really apreciated.
Joined: 26 Mar 2013 Posts: 1857 Location: Hung Hom, Hong Kong
Posted: Fri Sep 15, 2017 15:08 Post subject: Re: One time redirect traffic for specific URLs
drago0sh wrote:
Hello! I work in an small agency where we have one AP. For our intern security because our building is big with more companies inside, near us, i want to achieve this thing:
1) Explanation:
- When any user who is connected to our AP go for dd-wrt.com/page.html (just an example), check if this site is allowed by us, if not, redirect him to one page to inform that we do not allow that site and he is on his own, (our info page do a redirect in some seconds to the requested page automatically).
- I want redirect to be able to check for pages not for domains. If it's possiblle
- The second time when user try to enter on openwrt.org that redirect should not appear again.
2) In Practice:
- I type in browser dd-wrt.com/page.html, router receive, check the page/site and redirect me to info page.
Info page redirect me to openwrt.org after 5 seconds. This time openwrt.org should work and so on until 30 days (example).
How can i do this, first of all i want to know if it's possiblle inside router by firmware to check all incomming site's. Some start info would be really apreciated.
I think you were talking about a proxy server like Squid. You would need to force all users to browse via the Squid proxy server.