-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit introduces a new option `serve_ignore` to the Defender middleware. When enabled, it serves a robots.txt file with a "Disallow: /" directive to discourage search engine crawlers. The robots.txt file now allows specific bots like Googlebot, Bingbot, and DuckDuckBot while blocking others. This helps in managing how search engines interact with the protected resource. Signed-off-by: Jason Cameron <git@jasoncameron.dev>
- Loading branch information
1 parent
a74c28b
commit 5c9db4e
Showing
3 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
|
||
defender garbage { | ||
ranges private | ||
serve_ignore | ||
} | ||
respond "This is what a human sees" | ||
} | ||
|
This file contains 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
This file contains 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