-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck-content.cfg
More file actions
179 lines (179 loc) · 5.15 KB
/
check-content.cfg
File metadata and controls
179 lines (179 loc) · 5.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
[
{
"name":"Australian Government Design System",
"check":"ELEMENT_EXISTENCE",
"metaField":"X-DTA-AGDS",
"selector":".au-body",
"extractValue":false,
"extractMode":"TEXT",
"description":"Presence of an au-body class indicates used of the Australian Government Design System"
},
{
"name":"Australian Government Design System (UI-Kit)",
"check":"ELEMENT_EXISTENCE",
"metaField":"X-DTA-UIKIT",
"selector":"[class^=uikit-]",
"extractValue":false,
"extractMode":"TEXT",
"description":"Presence of an uikit-* class indicates use of the Australian Government Design System (early UI KIT version)"
},
{
"name":"Social media - Twitter integration",
"check":"ELEMENT_EXISTENCE",
"metaField":"X-DTA-TWITTER",
"selector":"meta[name^=twitter:]",
"extractValue":false,
"extractMode":"TEXT",
"description":"Detects the presence of any Twitter metadata"
},
{
"name":"Social media - facebook integration",
"check":"ELEMENT_EXISTENCE",
"metaField":"X-DTA-FACEBOOK",
"selector":"meta[property^=og:]",
"extractValue":false,
"extractMode":"TEXT",
"description":"Detects the presence of any Facebook Open Graph metadata"
},
{
"name":"CAPTCHA (Generic check)",
"check":"ELEMENT_EXISTENCE",
"metaField":"X-DTA-CAPTCHA",
"selector":"[src*=captcha],[href*=captcha]",
"extractValue":false,
"extractMode":"TEXT",
"description":"Basic generic detection check for CAPTCHAs"
},
{
"name":"Canonical URL defined",
"check":"ELEMENT_EXISTENCE",
"metaField":"X-DTA-CANONICAL",
"selector":"link[rel=canonical]",
"extractValue":false,
"extractMode":"TEXT",
"description":"Detects the presence of a canonical URL"
},
{
"name":"Plain English",
"check":"WORD_LIST_COMPARE",
"metaField":"X-DTA-PLAIN-ENGLISH",
"wordList":"plain-english",
"selector":"body",
"description":"Check for non plain English expressions"
},
{
"name":"Weasel words",
"check":"WORD_LIST_COMPARE",
"metaField":"X-DTA-WEASEL-WORDS",
"wordList":"weasel-words",
"selector":"body",
"description":"Check for weasel words"
},
{
"name":"Title length",
"check":"ELEMENT_LENGTH",
"metaField":"X-DTA-TITLE-LENGTH",
"selector":"title",
"description":"Identifies if the document contains any H1 values that exceed 55 characters in length.",
"comparator":"LENGTH_GT_CHARS",
"length":55,
"extractValue":true,
"extractMode":"TEXT"
},
{
"name":"H1 count",
"check":"ELEMENT_EXISTENCE",
"metaField":"X-DTA-H1",
"selector":"h1",
"extractValue":true,
"extractMode":"TEXT",
"description":"Detects the presence of a h1, also produces a count of h1s detected within the page."
},
{
"name":"Click here links",
"check":"ELEMENT_CONTENT",
"metaField":"X-DTA-LINKS-CLICKHERE",
"selector":"a",
"description":"Identifies links containing click here.",
"comparator":"CONTAINS",
"compareField":"CONTENT",
"compareText":"click here",
"extractMode":"TEXT",
"extractValue":true
},
{
"name":"JSON-LD",
"check":"ELEMENT_EXISTENCE",
"metaField":"X-DTA-JSONLD",
"selector":"script[type=application/ld+json]",
"extractValue":true,
"extractMode":"HTML",
"description":"Detects the presence of JSON-LD metadata."
},
{
"name":"Microdata",
"check":"ELEMENT_EXISTENCE",
"metaField":"X-DTA-MICRODATA",
"selector":"*[itemscope]",
"extractValue":true,
"extractMode":"TEXT",
"description":"Detects the presence of microdata."
},
{
"name":"Microdata type",
"check":"ELEMENT_CONTENT",
"metaField":"X-DTA-MICRODATA-TYPE",
"selector":"*[itemtype]",
"compareField":"ATTRIBUTE:itemtype",
"comparator":"MATCHES",
"compareText":".*",
"extractValue":true,
"extractMode":"TEXT",
"description":"Detects microdata types."
},
{
"name":"RDFa",
"check":"ELEMENT_EXISTENCE",
"metaField":"X-DTA-RDFA",
"selector":"*[vocab]",
"extractValue":true,
"extractMode":"TEXT",
"description":"Detects the presence of RDFa data."
},
{
"name":"RDFa type",
"check":"ELEMENT_CONTENT",
"metaField":"X-DTA-RDFA-TYPE",
"selector":"*[typeof]",
"compareField":"ATTRIBUTE:typeof",
"comparator":"MATCHES",
"compareText":".*",
"extractValue":true,
"extractMode":"TEXT",
"description":"Detects RDFa types."
},
{
"name":"Linked RSS feeds - URL",
"check":"ELEMENT_CONTENT",
"metaField":"X-DTA-LINKED-FEED-URL",
"selector":"link[type=application/rss+xml],link[type=application/atom+xml]",
"compareField":"ATTRIBUTE:href",
"comparator":"MATCHES",
"compareText":".*",
"extractValue":true,
"extractMode":"TEXT",
"description":"Detects linked feed urls."
},
{
"name":"Linked RSS feeds - type",
"check":"ELEMENT_CONTENT",
"metaField":"X-DTA-LINKED-FEED-TYPE",
"selector":"link[type=application/rss+xml],link[type=application/atom+xml]",
"compareField":"ATTRIBUTE:type",
"comparator":"MATCHES",
"compareText":".*",
"extractValue":true,
"extractMode":"TEXT",
"description":"Detects linked feed types."
}
]