NTHP

Trolling Bots

Web

Looking at my NGINX access log, I noticed a lot of 404 requests for some Wordpress admin pages.

This doesn’t surprise me. Bots are always banging URLs hoping to get something good. Unfortunately for them, I don’t use Wordpress.

Now I could just tell NGINX to drop anything that requests those (non existent) pages. But where’s the fun with that. Why not redirect them to something else.

Firing up Vim, I made a new file called bot-troll.conf. Tossing some basic redirects.

location = /wordpress/wp-admin/setup-config.php {
	return 301 https://www.youtube.com/watch?v=48rz8udZBmQ;
}

location = /wp-admin/setup-config.php {
	return 301 https://www.youtube.com/watch?v=48rz8udZBmQ;
}

After tossing include bot-trolls.conf; into my conf files for all my sites, it was ready. Have fun bots.


Reply via email