Skip to content

Commit 07a2178

Browse files
TC-MOclaude
andauthored
fix: improve lychee link checker to catch dead links returning 403 (#2261)
- Remove blanket HTTP 403 acceptance from lychee config, which was masking genuinely dead links (e.g., make.com/en/integrations/apify-instagram-scraper). - Add `--max-redirects 5` to properly follow redirects instead of reporting 302 as errors. - Add bot-blocking domains (soundcloud.com, fandom.com, remax.com.tr) to .lycheeignore to avoid false positives from sites that return 403 to non-browser clients. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 21e26fe commit 07a2178

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/lychee.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
--verbose
4747
--no-progress
4848
--timeout '60'
49-
--accept '100..=103,200..=299,403..=403,429'
49+
--accept '100..=103,200..=299,429'
50+
--max-redirects 5
5051
--format markdown
5152
'./build/**/*.html'

.lycheeignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ https://console-backend.apify.com/
1313
https://mcp.apify.com/
1414
https://www.deviceinfo.me/
1515
https://trust.apify.com/
16+
# Bot-blocked sites (return 403 to non-browser clients)
17+
https?:\/\/(www\.)?soundcloud\.com\/.*
18+
https?:\/\/(www\.)?fandom\.com\/.*
19+
https?:\/\/(www\.)?remax\.com\.tr\/.*

0 commit comments

Comments
 (0)