Getting 403 forbidden in my good bot (link checker)

Looked at those suggestions but none of them help.
The links my bot is getting the 403 error for open fine in the browser, or when running the on my local laptop. However the error occurs when running in production, hosted by AWS EC2.