Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Method to detect a parked page?

Tags:

domain-name

Anyone know of a way to programatically detect a parked web page? That is, those pages that you accidentally type in (or intentionally sometimes) and they are hosted by a domain parking service with nothing but ads on them.

I am working on a linking network and want to make sure that sites that expire don't end up getting snatched by someone else and then being a parked page.

like image 990
GeoffreyF67 Avatar asked Jan 29 '09 00:01

GeoffreyF67


1 Answers

Here is a test that I think may catch a decent number of them. It takes advantage of the fact you don't actually want to have real web sites up for your parked domains. It looks for the wildcarding of both subdomain and path. Lets say we have this URL in our system

http://www.example.com/method-to-detect-parked.

First I would check the actual URL and hash it or grab a copy for comparison.

My second check would be to

http://random.example.com/random

If it matches the original link or even succeeds, you have a pretty good indicator that the page is parked. If it fails I might check both the subdomain and path individually. If the page randomly changes some elements, you may want to choose a few items to compare. For example make a list of links included in the page and compare those or maybe the title tag.

like image 126
Philip Tinney Avatar answered Dec 14 '22 04:12

Philip Tinney