Fixed
Project:
Shield
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
15 Jun 2022 at 10:42 UTC
Updated:
11 Sep 2026 at 02:08 UTC
Jump to comment: Most recent, Most recent file
Currently there is no way to bypass the crawlers. For example if you have website which has facebook sso and according to the application we need to provide url which facebook crawls, enabling this shield module fails that crawling no matter if you add IP Address list or Domain
We can create textarea which will define crawler source and by pass it via adding one of the condition in middleware, so said crawler source will work as expected.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | bypassing-crawl-implemented-3285819-2.patch | 2.93 KB | abhaypai |
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
abhaypai commentedAdding patch for this feature.
Comment #3
abhaypai commentedComment #4
vbouchetHi @abhaypai,
It seems an interesting feature that you requested and provided a patch. Before including in the module, I think we should make it more generic and use the word "User agent" instead of crawler as it actually test the configured values against the user agent. We should probably display a warning message as the user agent is easily manipulable and so Shield can be by-passed using that method. Finally, we should add some tests.
Comment #6
japerryAs mentioned in #4, the feature I think is worthy -- however the patch needed a bit of rework. I pushed a MR that creates the new feature and adds some tests along with it.
Comment #10
japerry