LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-07-2011, 05:14 AM   #1
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Rep: Reputation: 39
spoofing the user agent string through squid


Hello everyone,
there are a few sites that STILL defy freedom and only allow some of all (!) of their functionality to Internet Explorer.
for me these sites are:

-my ISP-provided modem (!!!!!)
-my ebank account (crap!)

I could use the 'user agent' plugin for firefox in all my computers,
OR i could tamper with my slackware router and alter squid.conf.

I googled but it didn't help much. Do you have some good link for a tutorial? Has anyone done it?

thank you for your help
nass
 
Old 11-07-2011, 07:53 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
Well, this depends on squid version.
For 2.5-3.1 you can use just header_replace:
Code:
header_replace  User-Agent  Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)
For recent 3.1+ you should change the above, to:
Code:
request_header_access User-Agent deny all
request_header_replace User-Agent Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)
Regards
 
1 members found this post helpful.
Old 11-07-2011, 07:59 AM   #3
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Original Poster
Rep: Reputation: 39
thank you for your reply,
i'm running squid version from slackbuilds for slack13.37 (so it's 3.1.12).
may I also ask if I can find the standard user agent strings somewhere?

and also, ideally, i'd like to only spoof the user agent string in these specific websites. not everywhere..
is there a conditional request_header_access clause?
 
Old 11-07-2011, 08:03 AM   #4
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Original Poster
Rep: Reputation: 39
scratch the Q about ACL's its doable, from the standard clause , i'm reading the squid reference here
 
Old 11-07-2011, 08:23 AM   #5
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:
may I also ask if I can find the standard user agent strings somewhere?
Have a look here
 
1 members found this post helpful.
  


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
scripts should use an informative user-agent string with contact information linuxbird Linux - Newbie 1 06-20-2010 04:01 PM
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
LXer: Microsoft Buries $10,000 For People With IE8's User-Agent String LXer Syndicated Linux News 0 06-18-2009 12:10 PM
Is there any benefit to spoofing SSH version string, and how do I do that? Steve Cronje Linux - Security 2 01-19-2005 05:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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