Skip to content

Commit bdf84bd

Browse files
committed
docs: Update FCrDNS documentation and spelling
Corrected a typo in the `verifyFCrDNS` function documentation. Additionally, updated the spelling exception list to include new terms and remove redundant entries.
1 parent 186f535 commit bdf84bd

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

.github/actions/spelling/expect.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ apnic
1414
APNICRANDNETAU
1515
Applebot
1616
archlinux
17-
Arpa
1817
arpa
1918
asnc
2019
asnchecker
@@ -113,6 +112,7 @@ Factset
113112
fahedouch
114113
fastcgi
115114
FCr
115+
fcrdns
116116
fediverse
117117
ffprobe
118118
financials
@@ -162,7 +162,6 @@ hostable
162162
htmlc
163163
htmx
164164
httpdebug
165-
Huawei
166165
huawei
167166
hypertext
168167
iaskspider
@@ -356,6 +355,7 @@ valkey
356355
Varis
357356
Velen
358357
vendored
358+
verify
359359
vhosts
360360
vkbot
361361
VKE
@@ -373,7 +373,6 @@ wildbase
373373
withthothmock
374374
wolfbeast
375375
wordpress
376-
Workaround
377376
workaround
378377
workdir
379378
wpbot

docs/docs/admin/configuration/expressions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ function verifyFCrDNS(ip: string, pattern: string): bool;
356356
`verifyFCrDNS` checks if the reverse DNS of an IP address matches its forward DNS. This is a common technique to filter out spam and bot traffic. `verifyFCrDNS` comes in two forms:
357357

358358
- `verifyFCrDNS(remoteAddress)` will check that the reverse DNS of the remote address resolves back to the remote address. If no PTR records, returns true.
359-
- `verifyFCrDNS(remoteAddress, pattren)` will check that the reverse DNS of the remote address is matching with pattern and that name resolves back to the remote address.
359+
- `verifyFCrDNS(remoteAddress, pattern)` will check that the reverse DNS of the remote address is matching with pattern and that name resolves back to the remote address.
360360

361361
This is best used in rules like this:
362362

0 commit comments

Comments
 (0)