github-action-markdown-link-check icon indicating copy to clipboard operation
github-action-markdown-link-check copied to clipboard

incorrect 403 status

Open DaniBodor opened this issue 2 years ago • 8 comments
trafficstars

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?

DaniBodor avatar May 26 '23 11:05 DaniBodor

same issue here

sstraatemans avatar Jun 12 '23 13:06 sstraatemans

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

sstraatemans avatar Jun 12 '23 13:06 sstraatemans

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

DaniBodor avatar Jun 23 '23 08:06 DaniBodor

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

aslafy-z avatar Nov 18 '23 08:11 aslafy-z

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.

xbpk3t avatar Nov 26 '23 07:11 xbpk3t

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

gaurav-nelson avatar May 14 '24 12:05 gaurav-nelson