LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Squid conf (https://www.linuxquestions.org/questions/linux-security-4/squid-conf-748089/)

alfaedh 08-17-2009 06:20 AM

Squid conf
 
I would like to block sites to be access using the website ip address and only allow url request to be processed. How can I achieve that, please?

GlennsPref 08-17-2009 06:41 AM

Hi, Welcome to LQ!

LQ has a fantastic search function that may save you time waiting for an answer to a popular question.

With over 3 million posts to search it's possible the answer has been given. :)


squid homepage...
http://www.squid-cache.org/

I have also found this site helpful...
http://www.linuxhomenetworking.com/w...ess_with_Squid

cheers Glenn

alfaedh 08-17-2009 08:44 AM

yes, that is good, but with my search I came across an idea where you can prevent someone to access a webpage using IP address by reverse lookups in squid.conf. The problem is how can I do that? I need easy guide with simple example. Thanks.

GlennsPref 08-17-2009 10:54 AM

You really should have searched....

http://www.linuxquestions.org/questi...lookup-623975/
#2
Quote:

acl iponly dstdom_regex ^\d+\.\d+\.\d+\.\d+$
http_access deny iponly
#5
Quote:

regular expression approach to banning IP-based access
I have not tested this, but it looks as if it should do the job.

regards Glenn

http://www.squid-cache.org/Doc/config/

http://www.visolve.com/squid/squid30/contents.php

I'm not sure reverse proxy will do that, but
Quote:

Conclusion,
Reverse proxying is a special proxy deployment used to reduce load on a web server. The reverse proxy server is placed outside the firewall, acting as the web server to external clients. Cached requests are sent back directly to the clients without any computation from the actual web server. Uncached requests must be forwarded to the backend web server, and the response from the web server is then cached in the reverse proxy.
ref. http://www.visolve.com/squid/whitepa...verseproxy.php

good luck, Glenn


All times are GMT -5. The time now is 10:52 PM.