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
parent
87881140cd
commit
8b162f8ef7
|
@ -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*'
|
Loading…
Reference in New Issue