Skip to content

Instantly share code, notes, and snippets.

@scivision
Last active February 15, 2021 08:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scivision/cf2bac9884d751fe8d62e4c4b88226e7 to your computer and use it in GitHub Desktop.
Save scivision/cf2bac9884d751fe8d62e4c4b88226e7 to your computer and use it in GitHub Desktop.
Netlify public/_redirects for bot log diversion
# This file is for use with a Hugo blog.
# be careful using this on real-life site, so that the patterns below don't dump legitimate traffic!
# we use 410 to be more aggressive than 404, and to unclutter Netlify statistics
/.env /bot.html 410
/blog.zip /bot.html 410
/.git/* /bot.html 410
/browserconfig.xml /bot.html 410
/OLD/* /bot.html 410
/404.html /bot.html 410
/null /bot.html 410
/asset-manifest.json /bot.html 410
/guestbook.php /bot.html 410
/security.php /bot.html 410
/dump.sql.zip /bot.html 410
/index.php /bot.html 410
/comment/* /bot.html 410
/wls-wsat/* /bot.html 410
/node/* /bot.html 410
/ajax/* /bot.html 410
/desktopmodules/* /bot.html 410
/providers/* /bot.html 410
/public/* /bot.html 410
/Public/* /bot.html 410
/data/* /bot.html 410
/api/* /bot.html 410
/wp-login.php /bot.html 410
/setup.php /bot.html 410
/index.php/* /bot.html 410
/wp-admin/* /bot.html 410
/admin/* /bot.html 410
/adm/* /bot.html 410
/phpmyadmin/* /bot.html 410
/pma/* /bot.html 410
/xmlrpc.php /bot.html 410
/config.bak.php /bot.html 410
/vendor/* /bot.html 410
/v1/* /bot.html 410
/panel/* /bot.html 410
/phpunit/* /bot.html 410
/lib/* /bot.html 410
/emergency.php /bot.html 410
/error_log.php /bot.html 410
/club/* /bot.html 410
/quick/* /bot.html 410
/mobile/* /bot.html 410
/wp/* /bot.html 410
/wp1/* /bot.html 410
/wp2/* /bot.html 410
/wordpress/* /bot.html 410
/2018/* /bot.html 410
/2019/* /bot.html 410
/2020/* /bot.html 410
/cms/* /bot.html 410
/media/* /bot.html 410
/news/* /bot.html 410
/shop/* /bot.html 410
/sito/* /bot.html 410
/site/* /bot.html 410
/test/* /bot.html 410
/www/* /bot.html 410
/extlib/* /bot.html 410
/dev/* /bot.html 410
/sacv/* /bot.html 410
/yii/* /bot.html 410
/trash-DELETE-IT/* /bot.html 410
/wp-includes/* /bot.html 410
/web/* /bot.html 410
/website/* /bot.html 410
/wp-content/* /bot.html 410
/wp-json/* /bot.html 410
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment