location ~* \.(log|txt|sql|bak)$ deny all; return 403;
Bing, Yahoo, and Yandex also support similar advanced operators, making the problem multi-engine. allintext username filetype log passwordlog paypal exclusive
Example: