redirect script

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

redirect script

Post by venky145 »

hi


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 http://192.168.1.1

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

Post by mudasir »

Dear,

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)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
Post Reply