Questions tagged [useragent]
63 questions
0
votes
0 answers
NGINX $http_user_agent cause 404 response
The following conditional when matching a user-agent with substring 'MSIE 8' causes a 404 redirect?
#Begin IE8 Hack
if ($http_user_agent ~* 'MSIE 8') {
#set $hack "I";
}
#End IE8 Hack
Commenting out the if ($http_user_agent... stops the…
![](../../users/profiles/289560.webp)
Ben Crowhurst
- 101
- 2
0
votes
1 answer
Windows Phone user-agents?
I've been analyzing my access logs and found two very different ways Windows Phones advertise themselves. Here are two examples for a Nokia Lumia 800:
Mozilla/5.0 (compatible; MSIE 9.0; Windows Phone OS 7.5; Trident/5.0; IEMobile/9.0; NOKIA; Lumia…
![](../../users/profiles/253163.webp)
pieroxy
- 135
- 5
0
votes
1 answer
NGiNX Custom Cache param based on regex match
My question(s) are as follows:
How do I set custom variables based on regexp against a useragent?
How do I set custom headers for the reverse-proxy request?
How do I use these values as caching parameters?
Details:
I'm doing an initial output in…
![](../../users/profiles/3462.webp)
Tracker1
- 293
- 3
- 11
0
votes
3 answers
user agent in http or https request
Is there any way that I can differentiate,
the HTTP or HTTPS packets are coming from browser or not ?
specially for https request.There is User-Agent field in packet in Http,but I could not found anything in HTTPS.
![](../../users/profiles/223492.webp)
user95711
- 201
- 3
- 4
- 11
0
votes
1 answer
mod_security not blocking empty useragent requests
I can't get mod_security to block empty useragent requests. I am not very saavy with it so after searching I found this rule:
SecMarker BEGIN_UA_CHECK
SecRule &REQUEST_HEADERS:User-Agent "@eq 0"…
![](../../users/profiles/239920.webp)
san671
- 51
- 1
- 5
0
votes
1 answer
How to filter request using IP restrictions OR a filtering rule
We have an IIS site right now that has an allow list for a specific list of IP addresses, and all other IPs denied by default. We want to add another rule, that states that if the request coming in as a user-agent of a specific value, then allow it,…
![](../../users/profiles/138949.webp)
M.R.
- 143
- 1
- 8
0
votes
1 answer
Nginx: security vs conditionals
I was reading around looking for some security steps that can be taken in Nginx to protect apps I'm serving using Nginx as a reverse proxy. I found this code which has some good things in it to protect sites, but it's full of conditionals and the…
![](../../users/profiles/203448.webp)
Ryan Burnette
- 153
- 1
- 4
0
votes
3 answers
How can I test for a URLs existeance before redirecting to it?
I am using Apache's mod_rewrite to redirect mobile users to my mobile site based on their http_user_agent. However not all pages have a mobile equivalent. Also mobile pages end in .html and "full" pages end in .shtml.
Here is some pseudo code.
Does…
![](../../users/profiles/83982.webp)
ckliborn
- 2,750
- 4
- 24
- 36
0
votes
1 answer
NGINX MIME TYPE
I have my nginx conf file so that when ever a mobile device visits my site the url gets rewritten to m.mysite.com I did it by adding the following
set $mobile_rewrite do_not_perform;
if ($http_user_agent ~*…
![](../../users/profiles/115458.webp)
justanotherprogrammer
- 1
- 1
- 1
0
votes
2 answers
How to create .htaccess and block UserAgent libwww-perl?
I have been testing my website with a SEO checkup tool and one of the warnings I got was this:
Your server appears to allow access from User-agent Libwww-perl.
Botnet scripts that automatically look for vulnerabilities in your
software are…
![](../../users/profiles/100331.webp)
MicBehrens
- 173
- 1
- 3
- 11
0
votes
1 answer
Help With Adding Mobile User Agent Exceptions To Varnish-Cache
This is the code I've added to the vcl file, so that it caches content for desktop users and mobile users separately:
if (req.http.User-Agent ~…
user88753
0
votes
2 answers
What is a Looking Glass server?
I keep getting requests in my Apache logs from a bot with the user agent AppEngine-Google; (+http://code.google.com/appengine; appid: lookingglass-server) I understand that this is a looking glass server, but I don't know what a looking glass server…
![](../../users/profiles/35446.webp)
Alex Grin
- 241
- 3
- 4
- 10
0
votes
1 answer
Extracting Browser from user agent in SQL
I have a database of user agents that I need extract all of the unique browsers from in SQL. The field is like...
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT…
![](../../users/profiles/37222.webp)
Ben
- 3,630
- 17
- 62
- 93
0
votes
0 answers
Why does the access.log nginx file contain two different agent users for a single request?
I try to debugg an Angular error with an online Webbrowser Simulator "Saucelabs.com" running Safari. When I watch my debugg file on the nginx in access.log I see the following line:
xxx.xxx.xxx.xxx - admin [24/Feb/xxx +0000] "GET xx/xx HTTP/1.1" 200…
![](../../users/profiles/561436.webp)
a a
- 1
-1
votes
2 answers
Please deconstruct a user agent string for me
Okay I give up. Given the user agent string below, which browser is being used? It might be IE8, since I can't envision firefox sending this. If it is IE8, why the hell is the "Mozilla" string in there? I am not familiar with the history or taxonomy…
![](../../users/profiles/2523.webp)
P a u l
- 165
- 3
- 9