Allow IP address as URLs
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Squid > Allow IP address as URLs Thread Rating: 1 votes, 3.00 average.




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

    Allow IP address as URLs  
-linux_lad


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


 
09-23-04 03:26 AM

Our squid server has a whitelist of approved IP addresses, and blocks
everything not on the list. Unauthorized site access generates an error
page which doubles a a request form, which can be submitted to request
access to that site. Ip addresses added to the list do not seem to work
when added to the whitelist in the same way as domains are (probably
because lookups fail when squid is reloaded). My workaround has been to
add a dns entry, but this is clumsy and tedious. How can I add specific
IP addresses to the whitelist and have them be treated the same as a
domain like "www.yahoo.com"?

example:

#begin whitelist
www.yahoo.com
www.mapquest.com
209.154.26.104 <---this one won't work

--
-linux_lad





[ Post a follow-up to this message ]



Muthukumar_K is offline     Re: Allow IP address as URLs  
Muthukumar_K


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


Click Here to See the Profile for Muthukumar_K Click here to Send Muthukumar_K a Private Message Visit Muthukumar_K's homepage! Find more posts by Muthukumar_K Add Muthukumar_K to your buddy list
 
10-12-04 09:05 PM

#begin whitelist
www.yahoo.com
www.mapquest.com
209.154.26.104 <---this one won't work

>>>>>>>>

You are trying to block based on domain there so that we can not use IP-Addr
ess on domain. We can control on using url / dst ip manner.

 You can control domains as,
 
 acl <aclname> dstdomain .yahoo.com .mapquest.com

 or,

  acl <aclname> url_regex ^http://www.yahoo.com ^http://www,....

  But we can control ip-address based one as,

 acl <aclname> url_regex ^http://209.154.26.104

 Or
 
 acl <aclname> dst 209.154.26.104 

 It will give control to access web-access.

HTH.




[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:56 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