Webpage Monitor and Checksum Recorder is a handy Bash script that allows you to monitor webpages, calculate and record their checksums, and check for changes over time. This simple yet powerful tool can be useful for website administrators, developers, or anyone interested in tracking the integrity of web content.
Whether you want to ensure your website's content remains unchanged or verify the authenticity of online resources, this script has you covered. Easily keep an eye on your favorite webpages, record checksums, and get notified when changes occur.
- Checksum Calculation: Calculate the SHA1 checksum of a webpage to verify its integrity.
- Record Checksums: Record checksums and timestamps for monitored webpages in a data file.
- Change Detection: Detect and report changes in webpage content.
- User-Friendly: Simple command-line interface for easy interaction.
- Cross-Platform: Works on both Linux and macOS.
- Bash (Linux or macOS)
curl
for fetching webpage contentshasum
for checksum calculation (pre-installed on macOS)awk
for text processing
-
Clone the repository:
git clone https://github.com/smoke-wolf/check4change.git cd your-repo-name
-
Make the script executable:
chmod +x webpage_monitor.sh
-
Monitor a Webpage (using last recorded checksum):
./webpage_monitor.sh -m <URL>
-
Compare a Checksum and a URL:
./webpage_monitor.sh -c <checksum> <URL>
-
Load and Display Records:
./webpage_monitor.sh -l
-
Display a List of Websites with Recorded Checksums:
./webpage_monitor.sh -lm
ruby ccm.rb
This will load the analyzer.
Run the script with the URLs you want to monitor:
./m4c.sh <URL1> [URL2] [URL3] ...
./m4c.sh "https://www.theguardian.com/international" "example.com"
Monitor a webpage using the last recorded checksum:
./webpage_monitor.sh -m https://example.com
Compare a checksum with a URL to check for changes:
./webpage_monitor.sh -c <checksum> https://example.com
Load and display recorded webpage records:
./webpage_monitor.sh -l
Display a list of websites with recorded checksums:
./webpage_monitor.sh -lm
If you find a bug, have a feature request, or would like to contribute to this project, please feel free to create an issue or submit a pull request.
This project is licensed under the MIT License.
- This script was created by Smoke-wolf.
We hope you find this tool useful for monitoring and recording webpages