Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Commit 08da693

Browse files
authored
Use Tor Browser user agent for fetch tests (#19004)
* Use Tor Browser user agent for fetch tests * Use the latest ESR which TBB is based on
1 parent a207be5 commit 08da693

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

test/rules/checker.config.sample

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ connect_timeout = 10
3434
read_timeout = 15
3535
redirect_depth = 10
3636
threads = 10
37-
#user_agent = Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1
37+
# user_agent should be that of the latest ESR version on which TBB is based on.
38+
# https://blog.torproject.org/browser-fingerprinting-introduction-and-challenges-ahead
39+
#user_agent = Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Firefox/68.0
3840
#curl_verbose = true
3941
#ssl_version = TLSv1
4042
fetch_in_subprocess = true

test/rules/coverage.checker.config

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ skipfield = 1
1515
basedir = test/rules/platform_certs
1616

1717
[http]
18-
user_agent = Mozilla/5.0 (X11; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0
18+
# user_agent should be that of the latest ESR version on which TBB is based on.
19+
# https://blog.torproject.org/browser-fingerprinting-introduction-and-challenges-ahead
20+
user_agent = Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Firefox/68.0
1921
# Don't bother doing HTTP, we are just checking coverage and want it to be fast.
2022
enabled = false
2123
connect_timeout = 20

test/rules/http.checker.config

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ skipfield = 2
1616
basedir = test/rules/platform_certs
1717

1818
[http]
19-
user_agent = Mozilla/5.0 (X11; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0
19+
# user_agent should be that of the latest ESR version on which TBB is based on.
20+
# https://blog.torproject.org/browser-fingerprinting-introduction-and-challenges-ahead
21+
user_agent = Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Firefox/68.0
2022
enabled = true
2123
connect_timeout = 20
2224
read_timeout = 30

test/rules/manual.checker.config

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ check_target_validity = true
1313
basedir = test/rules/platform_certs
1414

1515
[http]
16-
user_agent = Mozilla/5.0 (X11; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0
16+
# user_agent should be that of the latest ESR version on which TBB is based on.
17+
# https://blog.torproject.org/browser-fingerprinting-introduction-and-challenges-ahead
18+
user_agent = Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Firefox/68.0
1719
enabled = true
1820
connect_timeout = 20
1921
read_timeout = 30

0 commit comments

Comments
 (0)