If you want to run a script to check whether your website is up and running properly, you can use the below curl command and it will give you a response and then you can parse this response and conditionally take further action like sending an email to the tech team to look into this or critical alert to fix this issue.

We can run a curl command to check it. Use the below curl command to check it.

res=$(curl -s --head -w %{http_code} https://mybeliefs.in/ -o /dev/null)
 echo $res

Happy Coding!!