From 71881ab88212695f6e39af5a7ca237b9bb42b5dc Mon Sep 17 00:00:00 2001 From: Bruno21 Date: Sat, 2 Nov 2024 12:50:36 +0100 Subject: [PATCH] Update README.md --- README.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9428cc6..a5df442 100644 --- a/README.md +++ b/README.md @@ -8,13 +8,33 @@ Bash scripts to check whether a site is available or not, and whether the certif Usage: urls_check.sh +1. Check whether the certificate is valid or not, using showcert (pip install showcert) if available, else use openssl. +2. Check if the url is up or down with it's http_code. + +Required the urls_list.txt file that contain a list of domains: + +```bash +#https://notif.domain.com +#https://ntfy.domain.com +https://paperlessngx.domain.com +https://pastebin.domain.com + +# comment line to disable checking this url +``` + +Required the status.txt file to give information about the http code returned. + +```bash +302;Found;https://developer.mozilla.org/fr/docs/Web/HTTP/Status/302 +``` + #### 2) validity.sh Usage: ./validity.sh -Check whether the certificate is valid or not. +Check whether the certificate is valid or not, using showcert (pip install showcert) if available, else use openssl. Required the validity_domains.txt file that contain a list of domains: @@ -23,3 +43,4 @@ domain1.com domain2.fr ``` +or edit the hosts() array in source code.