Tool that finds all 404 pages on a domain.

The only scenario I can think of, is a sequence of possible urls, like domain.tld/<1 to 100>.jpg or something like that. Is that what you mean because I'm still a bit confused.
 
Jesus, a lot of the replies here are cancerous. There was a guy on BHW recently who made such a tool for yt videos specifically. It would find high views videos with expired domains. The idea is that you would then be able to reg those and receive traffic from it. He gave me a demo but I can't remember his name and I don't know what happened to the project.
 
I need a tool that I can put in a domain (or better yet a list of domains) and it goes through all of them and finds all the 404 pages on each domain. So for example. I put in xyz.com

and it finds 2 404 pages on the website like

xyz.com/page1404

xyz.com/page2404

So far my only idea has been to find the sitemaps on domains and extract urls of whole site then check those for 404 or not, but this isnt good as not all sitemaps are easy to locate and many of them update regularly and dont include 404 pages.

I basically want to find all 404 pages on a domain that other domains are linking to.

Any suggestions would help.



*** use screaming frog, its free for the first 500 urls but it takes into account our images etc as urls aswell.
 
I'm sorry but I'm still confused. That's now how 404 pages work. The site has existing pages and every other page you request is non existent. Meaning there is an unlimited number of 404 pages. Don't you want the pages that DO EXIST?

I want the pages that existed at some point but no longer do, pages that other websites may be linking to, I don't mean 404 pages, I mean 404ed pages.
 
Oooh that's fairly simple! So you have a list of the urls the program should check. Or should the program find these urls on it's own? Because if you have a list of the urls you want to check it's a matter of a few lines of code...
 
So basically.
He inputs a site
- Crawls the site for all available links
- The tool checks the available links if it's 404ed.
- Extracts the links that were 404ed

I think that's what he wanna achieve.
 
So basically.
He inputs a site
- Crawls the site for all available links
- The tool checks the available links if it's 404ed.
- Extracts the links that were 404ed

I think that's what he wanna achieve.

Okay, talk is cheap so I wrote some code to demonstrate what I have in mind. I don't know if you can read Python code but I hope you can at least understand what it does by reading my explanation I commented (everything after the hashtag sign)
import requests
from bs4 import BeautifulSoup

soup = BeautifulSoup(requests.get(url_you_want).text) # Get the raw HTML source code of the page you want
urls = [a.get('href') for a in soup.find_all('a', href=True)] # Select all the hrefs of all the a elements in the HTML source code
broken_urls = [] # The list the 404ed pages will get added to
for url in urls: # Loop through the list of urls
if requests.get(url).status_code == 404: # If the HTTP response code is 404...
broken_urls.append(url) # Add the current url to the list of broken urls

Again, I'm not sure you know how to run this code so if you need some help, please let me know!
 
Okay, talk is cheap so I wrote some code to demonstrate what I have in mind. I don't know if you can read Python code but I hope you can at least understand what it does by reading my explanation I commented (everything after the hashtag sign)
import requests
from bs4 import BeautifulSoup

soup = BeautifulSoup(requests.get(url_you_want).text) # Get the raw HTML source code of the page you want
urls = [a.get('href') for a in soup.find_all('a', href=True)] # Select all the hrefs of all the a elements in the HTML source code
broken_urls = [] # The list the 404ed pages will get added to
for url in urls: # Loop through the list of urls
if requests.get(url).status_code == 404: # If the HTTP response code is 404...
broken_urls.append(url) # Add the current url to the list of broken urls

Again, I'm not sure you know how to run this code so if you need some help, please let me know!

I'm sorry if it's a bit hard to read. There should've been spaces and tabs but unfortunately they don't seem to show up :(
 
I'm sorry if it's a bit hard to read. There should've been spaces and tabs but unfortunately they don't seem to show up :(
Okay, talk is cheap so I wrote some code to demonstrate what I have in mind. I don't know if you can read Python code but I hope you can at least understand what it does by reading my explanation I commented (everything after the hashtag sign)
import requests
from bs4 import BeautifulSoup

soup = BeautifulSoup(requests.get(url_you_want).text) # Get the raw HTML source code of the page you want
urls = [a.get('href') for a in soup.find_all('a', href=True)] # Select all the hrefs of all the a elements in the HTML source code
broken_urls = [] # The list the 404ed pages will get added to
for url in urls: # Loop through the list of urls
if requests.get(url).status_code == 404: # If the HTTP response code is 404...
broken_urls.append(url) # Add the current url to the list of broken urls

Again, I'm not sure you know how to run this code so if you need some help, please let me know!

Hi NG_Neer, thanks for the help but that is not what I was after. Let me explain again. Say there is a domain, xyz.com. Now this domain has a bunch of pages that BELONG to that domain such as

xyz.com/contact-us
xyz.com/about
xyz.com/pages/product1

Some of these pages will no longer exist, aka, will be 404s. I want to find those pages, as many of them as possible. Now the next part is, that I don't just want to find those pages for xyz.com, but for a whole list of domains.

Screaming frog, can only check one domain at a time, and even then, I don't think it picks up all the 404s, I think it only picks up recent 404s.
 
Back
Top