LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-17-2009, 06:20 AM   #1
alfaedh
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Rep: Reputation: 0
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?
 
Old 08-17-2009, 06:41 AM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,652
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
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
 
Old 08-17-2009, 08:44 AM   #3
alfaedh
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
Old 08-17-2009, 10:54 AM   #4
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,652
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
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

Last edited by GlennsPref; 08-17-2009 at 11:01 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
squid conf: squid failed when I type insert redirect_program /usr/bin/squidguard laxmantsharma Linux - Software 1 02-24-2009 06:02 AM
SQUID for blocking yahoo and msn [inc squid.conf] chrisfirestar Linux - Security 10 03-03-2008 08:33 AM
Where is SQuid getting path to squid.conf jonette20 Linux - Software 1 08-18-2007 04:55 PM
need examples of squid.conf & dansguardian.conf jocast Linux - Software 1 05-11-2006 04:47 PM
squid conf: squid failed when I type insert redirect_program /usr/bin/squidguard Niceman2005 Linux - Software 1 11-24-2004 02:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration