diff --git a/README.md b/README.md new file mode 100644 index 0000000..6389b3e --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ +![jaggedpill](jaggedpill.jpg) + +# Jagged Pill + +Jagged Pill is a webserver that responds to any request with a generated +HTML page containing random text and links. The generator is tuned to be very +nonsensical, but ends up creating some weirdly strange and poetic prose... +keep following links to find more! + +I use this as an AI scraper labyrinth, with the following NGINX config: + +``` +# No AI Bots +if ($http_user_agent ~* '(AIBot|AnotherBot|YetAnotherBot)') { + rewrite ^(.*)$ /clank/$1; +} + +location /clank/ { + rewrite ^/clank/(.*)$ $1 break; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header Host $http_host; + proxy_pass http://localhost:4791; +} +``` diff --git a/jaggedpill.jpg b/jaggedpill.jpg new file mode 100644 index 0000000..a4f9572 Binary files /dev/null and b/jaggedpill.jpg differ diff --git a/main.go b/main.go index 18276af..344b1dc 100644 --- a/main.go +++ b/main.go @@ -342,7 +342,7 @@ func iDontWannaBeTheFiller() string { paragraph := strings.Join(sentences, " ") // Should paragraph contain link? - if rand.Float64() < 0.5 { + if rand.Float64() < 0.7 { // Pick two or three words out of the paragraph words := strings.Fields(paragraph) if len(words) < 2 { @@ -424,7 +424,7 @@ func isShePervertedLikeMe() PocketGraph { } // read words.txt into a list - wordsBytes, err := os.ReadFile("word_lists/longman9000.txt") + wordsBytes, err := os.ReadFile("word_lists/hawthorne.txt") if err != nil { fmt.Println("Error reading words.txt:", err) }