How to check multiple domains for 404 pages (in bulk)

fedez

Junior Member
Joined
Aug 13, 2012
Messages
114
Reaction score
27
Say for example, I have a list of 50 domains, and I want to know all the 404 pages for every domain. Is there a tool or method out there to check this?

I don't mean broken links but pages on those actual domains.

Thanks
 
This is good but it only checks the main URL. If I put in xyz.com I want to check every page

xyz.com/page1
xyz.com/page2
xyz.com/page3
xyz.com/page4

for 404 errors
Are you familiar with any programming language? You can do this with anything. For example using java.
Code:
public static boolean doesURLExist(URL url) throws IOException
{
    // We want to check the current URL
    HttpURLConnection.setFollowRedirects(false);

    HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();

    // We don't need to get data
    httpURLConnection.setRequestMethod("HEAD");

    // Some websites don't like programmatic access so pretend to be a browser
    httpURLConnection.setRequestProperty("User-Agent", "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)");
    int responseCode = httpURLConnection.getResponseCode();

    // We only accept response code 200
    return responseCode == HttpURLConnection.HTTP_OK;
}
Source
 
I think scrapebox does this too. Not sure, as I don't have my desktop machine handy right now. If you have SB, trying looking in the free plugins menu.
 
Back
Top