|
8 | 8 | # - 403 Forbidden: Some sites (npmjs.com, mathworks.com, doi.org) block automated |
9 | 9 | # requests but work fine in browsers |
10 | 10 | # - 429 Too Many Requests: Rate limiting doesn't mean the link is broken |
11 | | -# - See .lycheeignore for sites/patterns that are completely excluded |
12 | 11 |
|
13 | 12 | # Accept these HTTP status codes as valid |
14 | 13 | # 200: OK (standard success) |
@@ -41,8 +40,38 @@ exclude_path = [ |
41 | 40 |
|
42 | 41 | # Exclude specific URLs from checking (by regex) |
43 | 42 | exclude = [ |
| 43 | + # Local/internal URLs |
44 | 44 | '^http://127\.0\.0\.', |
45 | 45 | '^http://localhost', |
46 | 46 | '^https://localhost', |
47 | 47 | '^file://', |
| 48 | + # ScienceDirect links (require authentication/cookies) |
| 49 | + 'https://www\.sciencedirect\.com/science/article/pii/S1053811921010387', |
| 50 | + 'https://www\.sciencedirect\.com/science/article/pii/S0010945221001106', |
| 51 | + 'https://www\.sciencedirect\.com/science/article/pii/S1388245717309069', |
| 52 | + # Springer links (503 errors, but work in browsers) |
| 53 | + '^https?://link\.springer\.com/', |
| 54 | + # INCF links (certificate/network issues) |
| 55 | + '^https?://.*\.incf\.org/', |
| 56 | + '^https?://incf\.org/', |
| 57 | + # DOI links that return 403 but work in browsers |
| 58 | + '^https?://doi\.org/10\.1111/epi\.18113', |
| 59 | + # NPM package links (blocks automated requests) |
| 60 | + '^https?://.*\.npmjs\.com/package/hed-validator', |
| 61 | + # MathWorks links (blocks automated requests) |
| 62 | + '^https?://.*\.mathworks\.com/', |
| 63 | + # Brain Meeting poster links (expired/removed) |
| 64 | + '^https?://brainmeeting.*\.ipostersessions\.com/', |
| 65 | + '^https?://globalbrainconsortium\.org/documents/GBC_March-2023_Agenda_Annual_Meeting\.pdf', |
| 66 | + # CANCTA network links (authentication/access issues) |
| 67 | + '^https?://.*\.cancta\.net/', |
| 68 | + '^https?://cancta\.net/', |
| 69 | + # GitHub discussions (programmatic access blocked) |
| 70 | + '^https?://github\.com/hed-standard/hed-python/discussions', |
| 71 | + # HED tools services (programmatic access blocked) |
| 72 | + '^https?://hedtools\.org/hed/services_submit', |
| 73 | + # Neuroinformatics registration (certificate issues) |
| 74 | + '^https?://neuroinformatics\.incf\.org/', |
| 75 | + # Internal anchor links (false positives from lychee) |
| 76 | + '(_anchor|-anchor)', |
48 | 77 | ] |
0 commit comments