Create old-copyright.yaml

This template will alert you if the page has an old copyright date. Update line #18 as necessary or add additional negative matchers. Thanks to the PD-Team member on discord for their help. \m/
patch-1
Geeknik Labs 2020-12-30 17:09:07 +00:00 committed by GitHub
parent 87881140cd
commit 8b162f8ef7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 29 additions and 0 deletions

29
misc/old-copyright.yaml Normal file
View File

@ -0,0 +1,29 @@
id: old-copyright
info:
name: Find pages with old copyright dates
author: geeknik
severity: info
requests:
- method: GET
path:
- "{{BaseURL}}"
redirects: true
max-redirects: 3
matchers:
- type: word
words:
- '2020'
part: body
negative: true
extractors:
- type: regex
part: body
name: copyright_year
regex:
- 'Copyright [1-9]\d*'
- '© [1-9]\d*'
- '© [1-9]\d*'
- '© [1-9]\d*'