This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| tarpit [2025/02/12 00:48] – Yuki | tarpit [2025/02/12 01:16] (current) – Yuki | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ~~NOCACHE~~ | ~~NOCACHE~~ | ||
| - | |||
| <php> | <php> | ||
| + | // 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. | ||
| + | // Script by Yuki, licensed under LiLiQ-R. Feel free to use it on your site! | ||
| + | // http:// | ||
| + | |||
| + | $dict = "/ | ||
| $count_min = 2000; | $count_min = 2000; | ||
| $count_max = 5000; | $count_max = 5000; | ||
| - | $linkcount | + | $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 27: | Line 34: | ||
| $links = []; | $links = []; | ||
| - | for($i=1; | + | for($i=1; |
| { | { | ||
| $nums = []; | $nums = []; | ||