|
Friday, November 5
Calculating the odds
I think the chance of a domain being used by a spammer (referrer or email, take your pick) has a direct relationship with the number of hyphens in the name. If the top level domain is .info, this chance is multiplied by 10. Lately I've been getting an assload of referrer spam with some-stupid-thing.info type names. What makes this type of effort even more pathetic is that none of the links even work. It's Flying Dutchspam. The person who invents a computer that explodes when it mooches bandwidth of any kind will get a Nobel prize. Maybe even two. '; } else { if(stristr($filename,"archive")) { $dir=$_SERVER['DOCUMENT_ROOT']; $template='_01_archive.html'; $tail=strlen($template); $thisArchive=$filename; //$files=scandir($dir); $dh = opendir($dir); while (false !== ($filename = readdir($dh))) { $files[] = $filename; } sort($files); $earlyarch=""; $laterarch=""; $prevarch=""; $next=0; foreach($files as $file) { if (substr($file,-$tail)==$template) { if ($next==1) { $laterarch=$file; $earlyarch=$prevarch; $next=0; } if ($file==$thisArchive) { $next=1; } else { $prevarch=$file; $earlyarch=$prevarch; } } } $link=''; $divider=''; if(file_exists($earlyarch)) { $link='< Earlier Archive'; $divider=" | "; } if(file_exists($laterarch)) { $link=$link.$divider.'Later Archive >'; } $link=$link.' '; } } echo($link); ?> |