LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-04-2011, 01:51 AM   #1
rexjenny
LQ Newbie
 
Registered: Apr 2006
Posts: 18

Rep: Reputation: 0
Smile Squid Acl block access to a particular url


We have a journal subsrciption with "www.ieee.org" site. This comes with a restriction by which the userid/password can be used only from a single ip at any given time(i.e no concurrent logins). I like to know whether the following can be implemented using Squid Web Proxy acls


Login page url for 'wwww.ieee.org'

http://www.ieee.org/membership_servi...c_id=u_msignin

Deny access to the above url only (not the entire ieee.org website) for the whole network while granting access from a single ip. Everyone should be able to browse the entire 'ieee.org' but access should be blocked to the above url while granting access from a single ip. Thanks in advance for the help.
 
Old 10-04-2011, 03:47 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Sure it can be done. You can use the following acls:
Code:
acl ieee url_regex -i ^http://www.ieee.org/membership_services/membership/my_ieee.html(.*)$
acl allowed_ip src x.x.x.x
http_access allow allowed_ip ieee
http_access deny ieee
Regards
 
Old 10-05-2011, 12:02 AM   #3
rexjenny
LQ Newbie
 
Registered: Apr 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Thumbs up

Quote:
Originally Posted by bathory View Post
Hi,

Sure it can be done. You can use the following acls:
Code:
acl ieee url_regex -i ^http://www.ieee.org/membership_services/membership/my_ieee.html(.*)$
acl allowed_ip src x.x.x.x
http_access allow allowed_ip ieee
http_access deny ieee
Regards
Excellent, works just like I expected. Thank you very much.
 
  


Reply



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
How to block https sites through ACL in squid avi_tokade Linux - Newbie 5 04-12-2011 05:53 PM
i want to block a URL from squid Atifkhan Linux - Enterprise 3 02-23-2010 01:47 PM
block URL keyword in squid sunlinux Linux - Software 1 07-09-2008 03:23 AM
Squid acl block internet by ip address xzeppelin Linux - Newbie 5 05-28-2008 03:06 PM
squid acl how to block all site except some mikmok Linux - Networking 1 12-22-2003 08:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:19 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