Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/port19x/deadsniper
A fast, specialized dead-link checker
https://github.com/port19x/deadsniper
broken-links dead-links github-actions security seo seo-optimization
Last synced: about 1 month ago
JSON representation
A fast, specialized dead-link checker
- Host: GitHub
- URL: https://github.com/port19x/deadsniper
- Owner: port19x
- License: cc0-1.0
- Created: 2024-08-16T16:41:12.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-09-16T05:37:28.000Z (3 months ago)
- Last Synced: 2024-10-25T06:01:36.660Z (about 2 months ago)
- Topics: broken-links, dead-links, github-actions, security, seo, seo-optimization
- Language: Go
- Homepage:
- Size: 19.5 KB
- Stars: 8
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
- WebHackersWeapons - Deadsniper - link checker|![](https://img.shields.io/github/stars/port19x/deadsniper?label=%20)|[`broken-link`](/categorize/tags/broken-link.md)|![linux](/images/linux.png)![macos](/images/apple.png)![windows](/images/windows.png)[![Go](/images/go.png)](/categorize/langs/Go.md)| (Weapons / Tools)
README
# Deadsniper
Dead link (broken link) means a web page you have previously linked to is no longer available.
These dead links have a negative impact on SEO, Security and user experience.
This tool, inspired by [DeadFinder](https://github.com/hahwul/deadfinder), makes it easy to hunt them down.Note that this tool is much more limited in scope, only allowing use with a sitemap and only checking http/https links.
For customization and a slower, but broader tool, use [DeadFinder](https://github.com/hahwul/deadfinder).## Usage
```
Usage: deadsniper [options]Options:
-h | --help print this help text
-V | --version print the version number
-s | --strict allow only HTTP 200 response codes
-t | --timeout set the request timeout in seconds (default 5)Examples:
deadsniper https://port19.xyz/sitemap.xml
deadsniper -V
deadsniper --strict https://port19.xyz/sitemap.xml
deadsniper -t 1 -s https://port19.xyz/sitemap.xml
```## Usage via Github Actions
I recommend you download and run the binary, as building a whole docker container slows things down drastically
```
steps:
- name: Run Deadsniper
run: |
wget -q "https://github.com/port19x/deadsniper/releases/download/v1.4/deadsniper" && chmod +x ./deadsniper && ./deadsniper https://port19.xyz/sitemap.xml
```Alternatively, you can use the classical github actions approach at a 10-20s speed cost
```
steps:
- name: Run Deadsniper
uses: port19x/deadsniper@master
with:
sitemap: "https://port19.xyz/sitemap.xml"
```