import requests
if __name__ == "__main__":
    a = input("Enter url to be checked\n")
    a = requests.get(a)
    print(a.status_code)
    if a.status_code == 451:
        print("Website is blocked\n")
    else:
        print("Website is fine\n")

4ab9da7ca2febb54b24890b0201d5b3ac2916933
<mask token>

<mask token>
if __name__ == '__main__':
    a = input('Enter url to be checked\n')
    a = requests.get(a)
    print(a.status_code)
    if a.status_code == 451:
        print('Website is blocked\n')
    else:
        print('Website is fine\n')

import requests
if __name__ == '__main__':
    a = input('Enter url to be checked\n')
    a = requests.get(a)
    print(a.status_code)
    if a.status_code == 451:
        print('Website is blocked\n')
    else:
        print('Website is fine\n')

import requests
if __name__ == "__main__":
    a = input("Enter url to be checked\n")
    a = requests.get(a)
    print(a.status_code)
    if a.status_code == 451:
        print("Website is blocked\n")
    else:
        print("Website is fine\n")
