---
title: "Security and hardening: 39 guides | StreetHosting"
description: "SSH, firewall, fail2ban, permissions and protecting administrative access. Browse the 39 StreetHosting guides on this subject."
url: "https://streethosting.com.br/en/guides/topics/security"
type: "page"
language: "en-US"
---

# Security and hardening

SSH, firewall, fail2ban, permissions and protecting administrative access.

39 guides across 4 categories

Search guides

/

All39 Minecraft5 VPS19 Discord Bots5 Infrastructure10

Filters and sorting

39 guides

[Minecraft Beginner Best Minecraft host in Brazil: how to choose safely A good host is not just a low price: it is predictable latency, a CPU that survives tick spikes, reliable backups, and support that speaks your language when the server goes down on a Friday night. 6 min Read guide](https://streethosting.com.br/en/guides/minecraft/best-minecraft-host-brazil) [Discord bots Beginner Used disallowed intents error in a Discord bot: how to fix it The bot crashes on connect with Used disallowed intents, or it connects and cannot see the text of messages. Both have the same root: privileged intents must be switched on in the portal and declared in the code. 8 min Read guide](https://streethosting.com.br/en/guides/discord-bots/discord-bot-disallowed-intents-error) [Discord bots Beginner Keep your Discord bot token safe: .env, .gitignore and what to do if it leaks The bot token is its password. Whoever has the token controls the bot. Learn how to move the token out of your code with a .env file, keep it off GitHub and what to do when it leaks. 8 min Read guide](https://streethosting.com.br/en/guides/discord-bots/discord-bot-token-environment-variables) [Infrastructure Intermediate What is IPMI and what it does on a dedicated server When the server's operating system hangs or won't boot, SSH no longer helps. IPMI is the computer inside the computer that lets you see the screen, power it on and off and mount an installer remotely, and also a dangerous way in if left exposed. 8 min Read guide](https://streethosting.com.br/en/guides/infrastructure/what-is-ipmi-dedicated-server) [Infrastructure Intermediate What is NAT and port forwarding: self-hosting at home and why it fails Every device in your home reaches the internet with the same public IP, thanks to NAT. For someone outside to reach one of them, you have to forward a port on the router, and that only works if your router's IP is really public. 8 min Read guide](https://streethosting.com.br/en/guides/infrastructure/what-is-nat-port-forwarding) [VPS Intermediate PostgreSQL backup with pg\_dump and cron: script, rotation and restore A backup is only worth something if you can restore it. See how to create PostgreSQL dumps with pg\_dump, keep roles and globals with pg\_dumpall, automate it with cron, rotate old copies, move them off the VPS and test the restore. 9 min Read guide](https://streethosting.com.br/en/guides/vps/postgresql-backup-pg-dump-cron) [VPS Intermediate Docker Compose on a VPS: an app and a database in one compose.yaml One file describes the app, the database and the volumes, and one command brings everything up. Here is the full compose.yaml, the everyday commands, how to update without losing data and the two traps that catch everyone. 9 min Read guide](https://streethosting.com.br/en/guides/vps/docker-compose-vps-guide) [VPS Beginner WinSCP and FileZilla with SFTP: send files from Windows to your VPS SFTP uses the same port and the same login as SSH, so there is nothing to install on the VPS. Here is how to set up WinSCP and FileZilla with a password or a key, and how to clear the permission error on /var/www. 8 min Read guide](https://streethosting.com.br/en/guides/vps/winscp-filezilla-sftp-vps-windows) [Infrastructure Intermediate What is a WAF and when to use one on sites and APIs A WAF inspects the content of every request and blocks injections, XSS and exploitation of known vulnerabilities. See the deployment models, how to install ModSecurity with the OWASP CRS on Nginx, and how to tune it without breaking your site. 11 min Read guide](https://streethosting.com.br/en/guides/infrastructure/what-is-a-waf) [Infrastructure Intermediate Protect a web application from attacks: defense in layers No single tool protects a web application on its own. This guide organizes the defenses in layers, from the network port to the log, and shows what to configure first on a VPS running Nginx. 10 min Read guide](https://streethosting.com.br/en/guides/infrastructure/protect-web-application-from-attacks) [Infrastructure Intermediate TCP vs UDP: which protocol to use on each server TCP guarantees everything arrives, and in the right order. UDP delivers what it can without waiting for anyone. Understanding that trade explains why games and voice use UDP, why APIs use TCP and why opening lots of ports in the firewall does not work. 9 min Read guide](https://streethosting.com.br/en/guides/infrastructure/tcp-vs-udp) [VPS Intermediate Automatic security updates on Ubuntu Server Ubuntu already knows how to install security fixes without anyone typing apt upgrade. This guide shows how to turn it on, limit what gets in, schedule the reboot and check that the routine is actually running. 10 min Read guide](https://streethosting.com.br/en/guides/vps/ubuntu-automatic-security-updates) [VPS Beginner Set up an SSH key on Windows to access your VPS Windows already ships the OpenSSH client, so you can generate and use keys without installing anything. Here is the step by step in PowerShell, the most common permission errors and the path for anyone who prefers PuTTY. 9 min Read guide](https://streethosting.com.br/en/guides/vps/set-up-ssh-key-windows) [VPS Beginner What is taking up disk space on your VPS: how to find and free it A full disk takes down databases, stalls updates and makes applications fail without a clear error message. Here is how to find the culprit in a few commands and what you can delete without breaking anything. 9 min Read guide](https://streethosting.com.br/en/guides/vps/find-what-uses-disk-space-on-vps) [VPS Intermediate How to install MongoDB on an Ubuntu VPS with authentication Fresh out of the box, MongoDB accepts local connections with no password, and a misconfigured bindIp leaves it wide open to the internet. Here is how to install 8.0 from the official repository, enable authentication and give each application a user that can only reach its own database. 10 min Read guide](https://streethosting.com.br/en/guides/vps/install-mongodb-ubuntu-vps) [VPS Intermediate How to secure RDP on a Windows VPS against attacks Port 3389 open to the internet gets automated login attempts every single day. Here are the layers of protection that actually make a difference. 4 min Read guide](https://streethosting.com.br/en/guides/vps/secure-rdp-windows-vps) [VPS Beginner How to change the Administrator password on a Windows VPS The password generated at install is meant for your first login, not for good. Here is how to change it safely and what to do if you lost access. 4 min Read guide](https://streethosting.com.br/en/guides/vps/change-administrator-password-windows-vps) [VPS Intermediate How to install and configure Redis on an Ubuntu VPS Redis is an in-memory database used as a cache, a queue and a session store. Learn how to install it on Ubuntu, protect it with a password or ACL, cap its RAM with the right eviction policy, choose between RDB and AOF, and connect your application. 10 min Read guide](https://streethosting.com.br/en/guides/vps/install-redis-ubuntu-vps) [VPS Intermediate How to install PostgreSQL on an Ubuntu VPS securely PostgreSQL is the most complete open source relational database and the default for many modern applications. Learn how to install it on an Ubuntu VPS, create a user and database for your application, understand authentication, allow remote access without exposing the port, schedule backups and tune memory. 10 min Read guide](https://streethosting.com.br/en/guides/vps/install-postgresql-ubuntu-vps) [Discord bots Intermediate How to protect your Discord server from raids and spam with a bot Raids can take down a community in minutes with mass joins and spam. See how a bot guards the door with verification, message limits and a lockdown mode for emergencies. 3 min Read guide](https://streethosting.com.br/en/guides/discord-bots/discord-anti-raid-bot) [Discord bots Advanced How to build a web dashboard to manage your Discord bot Configuring a bot through commands wears admins out. A web dashboard with Discord login makes everything visual and accessible, from role settings to automated messages. 3 min Read guide](https://streethosting.com.br/en/guides/discord-bots/discord-bot-web-dashboard) [Infrastructure Intermediate Linux server security checklist: from fresh install to hardened A freshly created server is far too open. This checklist puts the hardening steps in order, turning a default machine into a server that is hard to break into. 3 min Read guide](https://streethosting.com.br/en/guides/infrastructure/linux-server-security-checklist) [Infrastructure Intermediate Network firewall vs. application firewall: what is the difference A network firewall decides which ports and IPs get through. An application firewall understands the content of web requests. They are different layers that together make a solid defense. 3 min Read guide](https://streethosting.com.br/en/guides/infrastructure/network-firewall-vs-application-firewall) [Minecraft Beginner How to change the spawn point on a Minecraft server Spawn is the first thing a player sees. Learn how to set the world spawn, pin a fixed spawn with a plugin and protect the area to make a good first impression. 3 min Read guide](https://streethosting.com.br/en/guides/minecraft/change-spawn-minecraft-server)

Show 15 more of 15

## Other topics

[See all 25 topics](https://streethosting.com.br/en/guides/topics)

[Linux administration78](https://streethosting.com.br/en/guides/topics/linux) [Hardware and datacenter68](https://streethosting.com.br/en/guides/topics/hardware) [Network, DNS and domains54](https://streethosting.com.br/en/guides/topics/networking) [Costs, plans and billing45](https://streethosting.com.br/en/guides/topics/costs) [Deploying and running apps41](https://streethosting.com.br/en/guides/topics/deploy) [Minecraft plugins38](https://streethosting.com.br/en/guides/topics/plugins) [Community and game modes37](https://streethosting.com.br/en/guides/topics/community) [Getting started32](https://streethosting.com.br/en/guides/topics/getting-started) [Automation and webhooks31](https://streethosting.com.br/en/guides/topics/automation) [Latency and ping31](https://streethosting.com.br/en/guides/topics/latency) [Monitoring and alerts28](https://streethosting.com.br/en/guides/topics/monitoring) [Other games26](https://streethosting.com.br/en/guides/topics/other-games) [Performance and optimization22](https://streethosting.com.br/en/guides/topics/performance) [Errors and diagnostics21](https://streethosting.com.br/en/guides/topics/troubleshooting)

[← All topics](https://streethosting.com.br/en/guides/topics)
