# Issue with healthcheck.sh script

**URL:** <https://forum.infinityfree.com/t/issue-with-healthcheck-sh-script/87616>\
**Category:** Hosting Support\
**Created:** [December 18, 2023, 3:43am UTC](https://forum.infinityfree.com/t/issue-with-healthcheck-sh-script/87616 "2023-12-18T03:43:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Floospart](https://forum.infinityfree.com/letter_avatar/floospart/32/6_449c533f586939b6e5f246632a46421f.png) [@Floospart](https://forum.infinityfree.com/u/Floospart)\
**Post date:** [December 18, 2023, 3:43am UTC](https://forum.infinityfree.com/t/issue-with-healthcheck-sh-script/87616/1 "2023-12-18T03:43:57Z")

</div>

Url:[http://kazaloon.is-best.net](http://kazaloon.is-best.net)

Well simply I’m using this status page script to montior the health of my websites  
But i faced a problem with health checking my subdomain  
I tried several types of fixes  
Like installing ssl or forcing HTTPS and such but it didn’t work because i found out later I’m not getting any ping back from my subdomain  
So i wana know how can i make that script able to check health my website it’s really important for me since i got other subdomains i bought i like to monitor all my websites at once in 1 pages  
Here’s the github i forked for the health check up

> **[GitHub - statsig-io/statuspage: A simple, zero-dependency, pure js/html status...](https://github.com/statsig-io/statuspage)**
>
> A simple, zero-dependency, pure js/html status page based on GitHub Pages and Actions.

The script named : healthcheck.sh at main directory of the script , running by a schedule health check using cron in .github workflow

### Other Information

Well,  
1- tried forcing ssl - returning failed  
2- forcing to read the website content if available - returning failed  
3- making the script bybass the SSL - returning failed  
4- making the script just to test if there’s a ping - returning failed

I hope someone to help me out with this problem,  
Thanks in advance ,

---

<div class="post-metadata">

**Author:** ![anon54841129](https://forum.infinityfree.com/letter_avatar/anon54841129/32/6_449c533f586939b6e5f246632a46421f.png) [@anon54841129](https://forum.infinityfree.com/u/anon54841129)\
**Post date:** [December 18, 2023, 3:59am UTC](https://forum.infinityfree.com/t/issue-with-healthcheck-sh-script/87616/2 "2023-12-18T03:59:05Z")

</div>

I see the problem. The script relies on using cURL, which means it’s being blocked by the [security system](https://forum.infinityfree.com/t/ensuring-only-web-browsers-can-access-your-website/49353) that ensures only web browsers can access sites hosted here.

---

<div class="post-metadata">

**Author:** ![Floospart](https://forum.infinityfree.com/letter_avatar/floospart/32/6_449c533f586939b6e5f246632a46421f.png) [@Floospart](https://forum.infinityfree.com/u/Floospart)\
**Post date:** [December 18, 2023, 5:00am UTC](https://forum.infinityfree.com/t/issue-with-healthcheck-sh-script/87616/3 "2023-12-18T05:00:05Z")

</div>

Alright thanks for clarifying the problem  
How could what can we do to the script to report success what can we check to see if it’s working or not

---

<div class="post-metadata">

**Author:** ![Floospart](https://forum.infinityfree.com/letter_avatar/floospart/32/6_449c533f586939b6e5f246632a46421f.png) [@Floospart](https://forum.infinityfree.com/u/Floospart)\
**Post date:** [December 18, 2023, 5:03am UTC](https://forum.infinityfree.com/t/issue-with-healthcheck-sh-script/87616/4 "2023-12-18T05:03:19Z")

</div>

Sorry for my bad writing  
I meant  
What can we change to the script to write success in logs how can we check if the website working or not in the monitoring

---

<div class="post-metadata">

**Author:** ![Floospart](https://forum.infinityfree.com/letter_avatar/floospart/32/6_449c533f586939b6e5f246632a46421f.png) [@Floospart](https://forum.infinityfree.com/u/Floospart)\
**Post date:** [December 18, 2023, 7:06am UTC](https://forum.infinityfree.com/t/issue-with-healthcheck-sh-script/87616/5 "2023-12-18T07:06:09Z")

</div>

For example websites like uptime monitoring how it says the subdomain is active and it write the subdomain ping too

---

<div class="post-metadata">

**Author:** ![Herbert](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/herbert/32/43603_2.png) [@Herbert](https://forum.infinityfree.com/u/Herbert)\
**Post date:** [December 18, 2023, 6:07pm UTC](https://forum.infinityfree.com/t/issue-with-healthcheck-sh-script/87616/6 "2023-12-18T18:07:22Z")

</div>

You can simulate a browser by adding request headers for the curl request along with your website cookie, but although you have to keep in touch with the cookie expiration time, change it before it expires or else it won’t work. And also, you can do the same with Wget.

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [December 25, 2023, 6:08pm UTC](https://forum.infinityfree.com/t/issue-with-healthcheck-sh-script/87616/7 "2023-12-25T18:08:05Z")

</div>

Closed on December 25, 2023, 6:08pm UTC

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