One time redirect traffic for specific URLs

Post new topic   Reply to topic    DD-WRT Forum Index -> Generic Questions
Author Message
drago0sh
DD-WRT Novice


Joined: 28 Jan 2017
Posts: 1

PostPosted: Sat Jan 28, 2017 13:35    Post subject: One time redirect traffic for specific URLs Reply with quote
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.
Sponsor
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1855
Location: Hung Hom, Hong Kong

PostPosted: Fri Sep 15, 2017 15:08    Post subject: Re: One time redirect traffic for specific URLs Reply with quote
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.

https://www.google.com.hk/search?dcr=0&q=squid+proxy

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
avelyncampbell
DD-WRT Novice


Joined: 26 Sep 2017
Posts: 1

PostPosted: Tue Sep 26, 2017 9:18    Post subject: Reply with quote
Yes, it is possible with the help of 301 you get redirect what your desired page.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Generic Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum