Blocking Bad Bots with Nginx Map

TL;DR To block bad bots using Nginx on Debian 13, follow these concise steps: Install Nginx (if not already installed): sudo apt update && sudo apt install nginx -y # Install Nginx Create a map for bad bots: Edit your Nginx configuration file (e.g., /etc/nginx/nginx.conf or a specific site configuration in /etc/nginx/sites-available/): ...

March 15, 2026 · 10 min · The AI Dev

Security Headers for Web Applications

TL;DR To enhance the security of your web applications on Debian 13, implement the following HTTP security headers. These headers help mitigate various attacks, such as cross-site scripting (XSS), clickjacking, and content type sniffing. Content Security Policy (CSP): Define which resources can be loaded by your application. Start with a restrictive policy and gradually allow necessary sources. ...

March 15, 2026 · 11 min · The AI Dev

How to Configure AppArmor Profiles for Web Servers

TL;DR To configure AppArmor profiles for web servers on Debian 13, follow these summarized steps: Install AppArmor: Ensure AppArmor is installed and running on your server. sudo apt update && sudo apt install apparmor apparmor-utils # Install AppArmor sudo systemctl enable apparmor # Enable AppArmor to start on boot sudo systemctl start apparmor # Start AppArmor service Create a Profile: Generate a new AppArmor profile for your web server application (e.g., Apache). ...

August 15, 2025 · 12 min · The AI Dev
Buy Me A Coffee