LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-28-2013, 02:14 PM   #1
ro1asnico
LQ Newbie
 
Registered: Oct 2013
Posts: 1

Rep: Reputation: Disabled
Allow only Android user agent Squid


Hello!
I'm working with Squid and I need to allow access only to Android user agent and deny access to any other type of browsers or user agents.
I know using a Acl i can do that but I don't know how to do it.
Help me please, thanks community!
 
Old 10-29-2013, 03:15 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
Quote:
Originally Posted by ro1asnico View Post
Hello!
I'm working with Squid and I need to allow access only to Android user agent and deny access to any other type of browsers or user agents.
I know using a Acl i can do that but I don't know how to do it.
Help me please, thanks community!
You should create an ACL based on the Android user-agent and allow access only to these clients:
Code:
acl droid browser  -i (.*?)Android
http_access allow droid
http_access deny all
Cheers
 
1 members found this post helpful.
Old 10-29-2013, 03:53 AM   #3
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Also you should be aware that user agents are VERY easy to spoof.
 
  


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
User Agent string EliasAlucard Linux - General 3 05-15-2012 03:22 AM
[SOLVED] spoofing the user agent string through squid nass Slackware 4 11-07-2011 08:23 AM
squid "user-agent" nima0102 Linux - Networking 0 07-10-2009 12:56 PM
bash: all --user-agent for "wget --user-agent " frenchn00b Programming 1 07-07-2009 05:25 AM
Squid Recovery Agent mehdi.sadighian Linux - Server 5 01-29-2009 05:57 PM

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

All times are GMT -5. The time now is 01:14 PM.

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