I trying to make site status checker on python

Website URL

https://filecdn.rf.gd/

Website ssl certificate provider: GoGetSSL

Error Message

Python console:

An error occurred: HTTPSConnectionPool(host='filecdn.rf.gd', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')))

Other Information

My python code:

import requests

url = "https://filecdn.rf.gd/"

try:
    response = requests.get(url)
    response.raise_for_status()

    if response.status_code == 200:
        print(f"The page at {url} is up and running.")
    else:
        print(f"The page at {url} returned a status code {response.status_code}.")

except requests.exceptions.RequestException as e:
    print(f"An error occurred: {e}")
except requests.exceptions.HTTPError as e:
    print(f"HTTP error: {e}")
except requests.exceptions.ConnectionError as e:
    print(f"Connection error: {e}")
except requests.exceptions.Timeout as e:
    print(f"Timeout error: {e}")
except requests.exceptions.RequestException as e:
    print(f"Request error: {e}")
except Exception as e:
    print(f"An unexpected error occurred: {e}")

Hello

For your protection (and to help you avoid suspension), free hosting does not allow any non-browser devices to access your website (So as your script here does not emulate a browser, its requests are blocked).

You can bypass this by buying a custom domain name (such as one from NameSilo/NameCheap) and using an external DNS provider (like CloudFlare).

6 Likes

For your information, file hosting is not allowed here and neither is on premium hosting.

3 Likes

If you’re looking to set up a file CDN, then please actually set up a file CDN. A website hosting account is not for file hosting and it’s definitely not a CDN. It’s for hosting websites, anything else is not supported/allowed, especially on free hosting.

5 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.