---
title: "User Agent Filtering - How to?"
canonical: "https://www.techtime-initiative.com/space/EasySSO/4620829/User+Agent+Filtering+-+How+to%3F"
format: markdown
---
Instructions on how to configure [User-Agent Filtering](https://techtime-website.atlassian.net/wiki/spaces/EasySSO/pages/4587987) for EasySSO

## Configuring via User-Agent string 

- In the EasySSO config screen go to the User-Agent Filtering Configuration tab (via NTLM/Kerberos and Advanced Configuration in EasySSO 4.0+)
- When you add a User-Agent string into "Instant User-Agent parsing" and click parse, the result returned can be copy/pasted into either the include or exclude rules.

![image-20240828-214712.png](media://252a9245-d1b7-42fe-a044-e8965c77d53d)

## Allowlist a certain type of client browser

Under User-Agent rules, specify each allowlist rule in the following format:

```
Device Type, OS Family, OS, Browser Type, Browser Family, Browser 
```

For example:

```
COMPUTER,WINDOWS,WINDOWS_7,WEB_BROWSER,IE,IE11
```

Please note, an empty element in the rule will match anything. I.e. a allowlist rule with an empty element is more lax than one with a specific value. For example, the following will allow any version of windows:

```
COMPUTER,WINDOWS,,WEB_BROWSER,IE,
```

- Multiple rules can be specified, one on each line. Empty lines will be ignored.
- Lines starting with "#" are considered to be comments - you can use these to record justification notes about allowlisting a browser.
- Once a rule is added to allowlist, only those browsers that match the rule will be requested to attempt NTLM/Kerberos Single Sign-On.
- If there are no rules entered here or in the blocklist - any browser will be requested to attempt NTLM/Kerberos Single Sign-On.

![image-20240828-053021.png](media://d99cc3a7-9f2a-43be-8376-a5c520777aae)

## Blocklist a certain type of client browser

> ⚠️ Allowlist takes precedence over the blocklist

Under User-Agent Excluded Rules, specify each blocklist rule in the same format:

Device Type, OS Family, OS, Browser Type, Browser Family, Browser 

For example:  

```
UNKNOWN,UNKNOWN,UNKNOWN,TEXT_BROWSER,LYNX,LYNX
```

Please note, an empty element in the rule will match anything, I.e. a blocklist rule with an empty element is more "broad" than one with a specific value. For example, the following will block all text browsers:

```
,,,TEXT_BROWSER,,
```

Multiple rules can be specified, one on each line. Empty lines will be ignored.

- Lines starting with "#" are considered to be comments - you can use these to record justification notes about blocklisting a browser
- Once a rule is added to blocklist, the browsers that match the rule will **not** requested to attempt NTLM/Kerberos Single Sign-On.
- If there are no rules entered here or in the whitelist - any browser will be requested to attempt NTLM/Kerberos Single Sign-On.

![blacklist.png](media://f1cdbe33-9372-4d29-be59-a732fffe7111)

## A word about using User-Agent filtering with Application Links 

When building links between Atlassian applications NTLMv2 or Kerberos is not supported and as such EasySSO on the "server" end needs to be instructed to ignore the "client" application. See [My Application Links don't work after installing EasySSO](https://techtime-website.atlassian.net/wiki/spaces/EasySSO/pages/3244453) for more information.

If the "client" application has EasySSO as well, it needs to be configured in a similar way (I.e. to ignore the other one). This can be achieved either with [IP Filtering](https://techtime-website.atlassian.net/wiki/spaces/EasySSO/pages/4096096) or, more elegantly, with User-Agent Filtering.

For that just insert the exact syntax of the lines below into the User-Agent Excluded rules (i.e. blocklist):

```
,,,TOOL,DOWNLOAD, UNKNOWN,UNKNOWN,UNKNOWN,UNKNOWN,UNKNOWN,UNKNOWN
```