Repository navigation
fix: stop sending the RSL license Link header on allowed requests - #27
Merged
Merged
Conversation
github-actions Bot
pushed a commit
that referenced
this pull request
Oct 13, 2026
## [1.4.1](v1.4.0...v1.4.1) (2026-10-13) ### Bug Fixes * stop sending the RSL license Link header on allowed requests ([#27](#27)) ([f8d22b4](f8d22b4))
|
🎉 This PR is included in version 1.4.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR bumps the Supertab Connect PHP SDK to v2.1.0, so the plugin no longer sends the RSL license
Linkheader on allowed requests. It now appears only on requests that are blocked for presenting an invalid license token.Context
SDK 2.0.1 added
Link: <…/license.xml>; rel="license"to every allowed response, so every page view by a person carried it too. SDK 2.1.0 (getsupertab/connect-sdk-php#30) sends it only when it treats a request as a bot's: on theOBSERVEmissing-token signal and on blocked responses, matching the TypeScript SDK.The plugin passes no bot detector to the SDK, so the
OBSERVEsignal never fires here. On a WordPress site the header therefore appears only on 401/403/503 responses to requests with an invalidLicensetoken. Crawlers without a token discover the license through the robots.txtLicense:directive added in 1.4.0 and through/license.xml.Key Changes
getsupertab/connect-sdk-phpfrom^2.0.1to^2.1.0. The lock file changes only the SDK entry.Bot_Protectionalready forwards whatever headers the SDK returns.BotProtectionTesttest that runs a real SDK instance throughmaybe_handle_request()and checks that an allowed request adds no headers and leaves WordPress's own headers untouched. It fails against SDK 2.0.1.Verification
composer test: 159 tests pass.composer check(lint, phpcs, phpstan): clean.Linkheader, and a request withAuthorization: License not-a-real-jwtreturns 401 withWWW-Authenticateand the licenseLinkheader.