gaurav-nelson / github-action-markdown-link-check

Check all links in markdown files if they are alive or dead. 🔗✔️
MIT License
399 stars 78 forks source link

incorrect 403 status #185

Open DaniBodor opened 1 year ago

DaniBodor commented 1 year ago

Hi, I tried setting up your tool on our repo, but it is incorrectly flagging a link as dead:

ERROR: 1 dead links found! [✖] https://opensource.org/license/apache-2-0/ → Status: 403

have I set it up wrong or is this a bug or some other issue?

sstraatemans commented 1 year ago

same issue here

sstraatemans commented 1 year ago

@DaniBodor: you can fix it by adding 403 to aliveStatusCodes in your config

DaniBodor commented 1 year ago

I ended up fixing it by adding the site to the ignorePatterns list.

aslafy-z commented 7 months ago

This website is behind Cloudflare, see https://developers.cloudflare.com/support/troubleshooting/http-status-codes/4xx-client-error/#403-forbiddenrfc7231httpstoolsietforghtmlrfc7231.

hxhac commented 7 months ago

same here, All website hehind Cloudflare is getting 403 response.

Maybe we can make a DNS query to detect if a site is using Cloudflare or not.

gaurav-nelson commented 1 month ago

Update: I have stopped working on this action. Please try https://github.com/UmbrellaDocs/linkspector and https://github.com/UmbrellaDocs/action-linkspector instead.