Skip to content

Instantly share code, notes, and snippets.

View manojxio's full-sized avatar

Manoj Kumar manojxio

View GitHub Profile
@manojxio
manojxio / nginx.conf
Created March 5, 2025 06:00
Block Testing Tools Query Parameters, User-Agents and Suspicious Headers
server {
listen 80;
server_name yourdomain.com;
# Block malicious query parameters
set $block_query 0;
if ($query_string ~* "(mdrv|jmeter|gatling|locust|tsung|k6|zaproxy|burp|nikto|sqlmap|metasploit)") {
set $block_query 1;
}