This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tarpit [2025/02/12 00:45] – Yuki | tarpit [2025/02/12 01:16] (current) – Yuki | ||
---|---|---|---|
Line 1: | Line 1: | ||
~~NOCACHE~~ | ~~NOCACHE~~ | ||
- | |||
<php> | <php> | ||
- | $count = 5000; | + | // This creates infinite links for crawler bots to follow, full of absolute nonsense so AI can choke on it. Basically, it just picks words from a dictionary at random from a set seed. |
- | $linkcount | + | // Script by Yuki, licensed under LiLiQ-R. Feel free to use it on your site! |
+ | // http:// | ||
+ | |||
+ | $dict = "/ | ||
+ | $count_min = 2000; | ||
+ | $count_max | ||
+ | $linkcount_min = 2; | ||
+ | $linkcount_max | ||
$paragraphs = 250; | $paragraphs = 250; | ||
- | $words = explode(" | + | // Config ends here, but the fun is only starting. |
+ | |||
+ | $words = explode(" | ||
$num_words = count($words); | $num_words = count($words); | ||
Line 20: | Line 28: | ||
mt_srand($seed); | mt_srand($seed); | ||
- | for($i=0; | + | for($i=0; |
{ | { | ||
echo $words[mt_rand(0, | echo $words[mt_rand(0, | ||
Line 26: | Line 34: | ||
$links = []; | $links = []; | ||
- | for($i=1; | + | for($i=1; |
{ | { | ||
$nums = []; | $nums = []; |