LinuxQuestions.org
Register a domain and help support LQ
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, 06:14 AM   #1
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slack(64|32)_v(13.37|14.0), debian6, ubuntu
Posts: 632

Rep: Reputation: 36
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, 08:53 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,973

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
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, 08:59 AM   #3
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slack(64|32)_v(13.37|14.0), debian6, ubuntu
Posts: 632

Original Poster
Rep: Reputation: 36
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, 09:03 AM   #4
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slack(64|32)_v(13.37|14.0), debian6, ubuntu
Posts: 632

Original Poster
Rep: Reputation: 36
scratch the Q about ACL's its doable, from the standard clause , i'm reading the squid reference here
 
Old 11-07-2011, 09:23 AM   #5
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,973

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


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
scripts should use an informative user-agent string with contact information linuxbird Linux - Newbie 1 06-20-2010 05:01 PM
squid "user-agent" nima0102 Linux - Networking 0 07-10-2009 01:56 PM
bash: all --user-agent for "wget --user-agent " frenchn00b Programming 1 07-07-2009 06:25 AM
LXer: Microsoft Buries $10,000 For People With IE8's User-Agent String LXer Syndicated Linux News 0 06-18-2009 01: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 06:17 PM


All times are GMT -5. The time now is 05:42 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration