For AI agents: visit https://docs.datadome.co/llms.txt for an index of all pages formatted in Markdown and endpoints in OpenAPI.
- Platform Integrations: Server-side
- Go
Go Changelog
- Sanitize payloads sent to Protection API
- Remove hard-coded status codes in favor of DataDome Protection API response headers, enabling seamless support for upcoming features
- Increase length limit from 128 to 512 characters for DataDome cookie to support upcoming features
- Reduce log verbosity in
httpClient
- Reduce log verbosity in
client.handler
- Remove
go-querystring dependency and reimplement URL encoding for payloads
- Add
CookiesList to payloads sent to Protection API
- Add
UseXForwardedHost setting to support host override via X-Forwarded-Host header
- Rename
DataDomeStruct structure to Client
- Remove
DataDome prefix on fields of the Client structure
- Replace sub-packages with a single
modulego package
- Update the
NewClient signature to use the functional options pattern
- Handle configuration errors during the client's instantiation
- Add support of 301/302 redirections returned by the Protection API
- Add
Logger field to the Client structure
- Enhance code documentation
- Add
EnableReferrerRestoration field to enable the referrer restoration
- Add GraphQL support for POST requests
- Add
EnableGraphQLSupport field to enable GraphQL support
- Add
MaximumBodySize field to define maximum amount of data to read on GraphQL requests
- Add debug logs and enhance log outputs
- Add
Debug field to enable debug mode
- Update
TimeRequest value to a timestamp in microseconds without floating point to comply with the API contract
- Update inclusion/exclusion regex matching to apply to the complete URL, making configuration simpler and more secure
- Update default URL pattern exclusion regex to ensure consistent regex format across all platforms
- Update truncation limits for the data sent to the API Server
- Fix hostname for DataDome endpoint
- Use hostname for endpoint configuration