wkrappen91
Power Member
- Sep 9, 2010
- 564
- 726
PHP:
<?php
set_time_limit ( 0 );
if (isset($_POST['comment']))
{
$dof[]=0;
$com=explode("\n",$_POST['comment']);
foreach ($com as $site)
{
$html=file_get_contents($site);
preg_match_all("/<a href(.+?)>/",$html,$matches);
$links=$matches[0];
$nof=0;
foreach ($links as $link)
{
if (strpos($link, "nofollow") > 0)
{
$nof++;
}
}
echo $site." ";
echo "<font color=red>".$nof."</font>";
echo "/";
echo "<font color=green>".count($links)."</font>";
echo "<br>";
if (count($links)!=0){
if ($nof/count($links)<$_POST['perc']/100){
$dof[].=$site;
}
}
}
echo '<textarea cols="100" rows="5" name="comment">';
for ($x=1;$x<count($dof);$x++)
{
echo $dof[$x];
}
echo '</textarea>';
}
else
{
?>
Show me the URLs out of this list <br>
<form method="POST">
<textarea cols="40" rows="5" name="comment"></textarea><br>
Having less than<br>
<input type="text" name="perc" size="4">% links with a 'nofollow' tag <br>
<input type="submit">
</form>
<?php
}
?>
Pretty self explainatory...
save as .php -> Upload to webserver.
Enter URLs,
enter tollerance in % (For example 10% means if a site as 9 Nof0llow links out of 100 total, it still counts as a dof0llow)
hit submit.
Get a new list containing DoF0llow URLs
It might output some messy Warnings, but in the end at the bottom you will have a textfield with the DoF0llow URLs..
Last edited: