- Issue created by @msielski
We experienced bots spamming our extlink URLs and added a test to verify that header x-requested-with was XMLHttpRequest.
Find an external link on your site, copy the URL and paste in a new browser window. Ideally these should return forbidden if requested directly.
See attached patch which we have successfully used to mitigate this.
Please review.
Note, we have applied our patch against the D9 fork of this module (https://git.drupalcode.org/issue/extlink_extra-3137861.git) - but had to select 8.x-1.x-dev as version.
Needs review
1.0
Code