Squid - Squid Redirection for particular IPs only

This is Interesting: Free IT Magazines  
Home > Archive > Squid > January 2006 > Squid Redirection for particular IPs only





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Squid Redirection for particular IPs only
sajalb@gmail.com

2006-01-13, 9:33 pm

Hello,

Redirection is working perfectly in my squid setup. Need to use the
redirection for some particular IPs only.

Can it be done through the PERL program itself. Like if the redirector
..pl gets the IP address of the user then accordingly it can redirect or
not redirect.

Regards
Sajal

Sajal

2006-01-13, 9:33 pm

Simply,

#!/usr/bin/perl
$|=1;
while (<> ) {
s!http://my.website.com!http://192.168.0.149!;
print;
}

Can customise it, programming PERL won't be a problem

Any help

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com