Add configurable user agent to WP-CLI to detect in firewall logs by amirhmoradi · Pull Request #5998 · wp-cli/wp-cli

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@amirhmoradi

Copy link

Contributor

To make requests identifiable in firewall logs and do not trigger false alarms, this allows setting a user agent in ENV VARS or defaults to a generic user agent.

To make requests identifiable in firewall logs and do not trigger false alarms, this allows setting a user agent in ENV VARS or defaults to a generic user agent.

@amirhmoradi amirhmoradi requested a review from a team as a code owner

October 1, 2024 13:19

@schlessera schlessera changed the title Update wp-cli.php to set a user agent in common headers Add configurable user agent to WP-CLI to detect in firewall logs

Feb 5, 2025

@schlessera schlessera added this to the 2.12.0 milestone

Feb 5, 2025

@schlessera schlessera merged commit e583f40 into wp-cli:main

Feb 5, 2025

@schlessera

Copy link

Member

Thanks for the pull request, @amirhmoradi !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@schlessera schlessera schlessera approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

2.12.0

Development

Successfully merging this pull request may close these issues.

2 participants

@amirhmoradi @schlessera