redirect script

Protecting your Linux box
Post Reply
Posts: 118
Joined: Thu Jan 13, 2005 2:35 pm
Location: qatar

redirect script

Post by venky145 »


hai every one. i want small help.

i am using linux server for internet ( NAT + squid ) + postgres for database mainten.

I have web authentication for all users with username and password.

authentication is like

is there any possible to redirect like if they client browse any website its redirects to login page if they doesn't logged in.
Posts: 565
Joined: Tue Oct 17, 2006 5:23 am
Location: Dubai

Post by mudasir »


You should a squid redirector or squid rewrite program. Google for squid rewrite script or squid redirector. You will get many. And if you want you can write your own custom redirector, i did this about 2 years back, you can use BASH or any other scripting language that suits you.
Kind Regards
Mudasir Mirza (RHCE)
Post Reply