Skip to content

Instantly share code, notes, and snippets.

View maheshwarishivam's full-sized avatar

Shivam Maheshwari maheshwarishivam

View GitHub Profile
@maheshwarishivam
maheshwarishivam / cloudSettings
Last active May 19, 2021 02:15
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-10-10T08:57:39.526Z","extensionVersion":"v3.4.3"}
@maheshwarishivam
maheshwarishivam / nginx-block-badagent.conf
Last active March 19, 2021 11:49
Nginx Config to Block Bad Bots, Scrapers and Hacker user Agents
http {
map $http_user_agent $badagent {
default 0;
~*(ahrefsbot|alexibot|appengine|aqua_products|archive.org_bot|archive|asterias|attackbot|b2w|backdoorbot|becomebot|blackwidow|blekkobot) 1;
~*(blowfish|botalot|builtbottough|bullseye|bunnyslippers|ccbot|cheesebot|cherrypicker|chinaclaw|chroot|clshttp|collector) 1;
~*(control|copernic|copyrightcheck|copyscape|cosmos|craftbot|crescent|custo|demon) 1;
~*(disco|dittospyder|dotbot|download|downloader|dumbot|ecatch|eirgrabber|email|emailcollector) 1;
~*(emailsiphon|emailwolf|enterprise_search|erocrawler|eventmachine|exabot|express|extractor|extractorpro|eyenetie) 1;
~*(fairad|flaming|flashget|foobot|foto|gaisbot|getright|getty|getweb!|gigabot) 1;
~*(github|go!zilla|go-ahead-got-it|go-http-client|grabnet|grafula|grub|hari|harvest|hatena|antenna|hloader) 1;