Get started with User Agent Filtering
ngrok has introduced a User Agent Filter module that allows users to filter traffic destined for upstream services based on the value of the HTTP <code>user-agent</code> request header. A User Agent is any application that can interact with another application on behalf of an end user, including applications, bots, and command line tools. The `user-agent` HTTP header includes information about the application making the request, such as its type, operating system, software vendor name, and software version. Filtering based on the UA string allows users to exclude bots and crawlers from gaining access to their service without modifying their application code. The User Agent Filter module uses regular expression rules to match the value against a list of `allow` and `deny` rules, allowing users to control access to their services by blocking or allowing specific user agents. Users can define these rules in various ways, including through the ngrok agent configuration file, SDKs, or the Ingress Controller for Kubernetes.
Company
Ngrok
Date published
Dec. 14, 2023
Author(s)
Mandy Hubbard
Word count
834
Language
English
Hacker News points
None found.