I'm writing an internet access tool for a LAN that uses Linux + iptables to redirect to a login page everytime a user tries to access to any web page. That login page asks for user and password and if the authentication was successful, it removes the iptables rule so the subsequent requests goes to the originally intended webpage.
This is the situation:
- If I go to http://www.abc.com, my default gw redirects me to 10.0.10.10/login.php
- I successfully login.
- If I try to go again to http://www.abc.com, the browser is automatically sending me back to 10.0.10.10, it's like some sort of caching.
- If I try to enter to another page other than abc.com, it works as expected.
How can I tell the browser to remove the "remembered" rule of redirection?