• Resolved Passive Book

    (@passivebook)


    I have a python script that checks links status code.

    Here is the code

    import requests
    response = requests.get("https://passivebook.com/go/bluehost/", timeout=150)
    response.status_code 

    The code always returns 403 for Thirsty Affiliate Links. The links work otherwise. What can I do to fix this?

    • This topic was modified 2 years, 10 months ago by Passive Book.
Viewing 1 replies (of 1 total)
  • Plugin Author Caseproof LLC

    (@caseproof)

    Hi,

    There’s likely some sort of firewall set up either through a plugin or through your hosting provider that’s issuing a 403 error when the request is being made through code so you might try temporarily disabling any security solutions you have set up and see if that allows the request to be made correctly.

Viewing 1 replies (of 1 total)

The topic ‘Python Script to Check link Status Code Returns 403 Status Code’ is closed to new replies.