Skip to content

Commit

Permalink
Merge pull request #23 from podigee/block-apache-httpclient
Browse files Browse the repository at this point in the history
Detect Apache HttpClient
  • Loading branch information
spiderpug authored Jul 3, 2024
2 parents cdf4cc8 + 750290e commit 2bfc4d6
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [1.1.4]

- Detect `Apache-HttpClient/5.1.4 (Java/1.8.0_144)` as bots

## [1.1.3]

- Improve radio.net detection for android devices
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
pod_ident (1.1.3)
pod_ident (1.1.4)

GEM
remote: https://rubygems.org/
Expand Down
8 changes: 8 additions & 0 deletions lib/detection_rules_bots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@
test:
userAgents:
- userAgent: AnchorImport/1.0
- app: Apache HTTPClient
match:
regex: "^Apache\\-HttpClient"
platform: bot
test:
userAgents:
- userAgent: Apache-HttpClient/5.1.4 (Java/1.8.0_144)
- userAgent: Apache-HttpClient/5.1.4 (Java/1.8.0_91)
- app: Apple Podcasts (Watch)
match:
regex: "^atc/|\\(null\\) watchOS/"
Expand Down
2 changes: 1 addition & 1 deletion lib/pod_ident/detection_rules_bots.rb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/pod_ident/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module PodIdent
VERSION = '1.1.3'
VERSION = '1.1.4'
end
2 changes: 1 addition & 1 deletion spec/detection_rules_bots.rb

Large diffs are not rendered by default.

0 comments on commit 2bfc4d6

Please sign in to comment.