redirect script

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

redirect script

Postby venky145 » Mon Sep 06, 2010 7:09 pm


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

Postby mudasir » Fri Sep 17, 2010 2:10 pm


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)

Return to “Security”

Who is online

Users browsing this forum: No registered users and 1 guest