Create a file named checkifisonline.sh (give it permission read and write) allow Executable ) working in ubuntu or whonix or in tails drag and Drop in the terminal and hit enter ..
*remember to change the onion site in the script for yours.. and to put the path to the music .mp3 ..
script here
https://anonfiles.com/P6KeU475p4/checkifisonline_txt
When the Site will go down The alarm will start .. Take note in ubuntu if the alarm start and the site is ok .. restart ubuntu start the script again .. how i do ?
in ubuntu i have tor installed .. i start in the terminal tor
cd tor-browser_en-US/
./start-tor-browser.desktop
i do that is start tor After i open a terminal
i start anonsurf (working in ubuntu )
i do
sudo anonsurf Start
after i open a terminal in the folder Where i have put the script and the .mp3 music i drag and drop the script and hit Enter if Tor is open the script will working after less of 4 min i see The site is UP .. when is go down is Write in red the site is Down and the music Start !
take note tor was under ddos attack Junuary 2021 .. They will patch That next tor Version probably !
https://gitlab.torproject.org/tpo/core/tor/-/issues/40237