Squid Redirection for particular IPs only
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Squid > Squid Redirection for particular IPs only




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Squid Redirection for particular IPs only  
sajalb@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-14-06 02:33 AM

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






[ Post a follow-up to this message ]



    Re: Squid Redirection for particular IPs only  
Sajal


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-14-06 02:33 AM

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






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:08 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register