Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (14 sloc) 0.424 kb
<?php
const MAX_CS_ERRORS = 15;
const MIN_LINE_COVERAGE = 15;
function linkChecker($link) {
$blockedHosts = array('youporn.com','rotten.com');
$blockedTlds = array('ru', 'xxx');
$parsedUrl = parse_url($link);
$host = $parseUrl['host'];
if( in_array($host, $blockedHosts) ) {
echo "domain blocked";
return false;
}
//@todo finish
}
Jump to Line
Something went wrong with that request. Please try again.