{"id":33080,"date":"2026-08-04T16:39:43","date_gmt":"2026-08-04T14:39:43","guid":{"rendered":"https:\/\/contabo.com\/blog\/?p=33080"},"modified":"2026-08-04T16:39:46","modified_gmt":"2026-08-04T14:39:46","slug":"web-hosting-security","status":"publish","type":"post","link":"https:\/\/contabo.com\/blog\/web-hosting-security\/","title":{"rendered":"Web Hosting Security: Best Practices, DDoS Protection &#038; What to Look For"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Web hosting security is the set of measures that protect a web server and its hosted sites from unauthorized access, data breaches, DDoS attacks, and malware. It operates on two levels: what your hosting provider handles at the infrastructure layer \u2014 DDoS mitigation, network firewalls, and physical data center controls \u2014 and what you manage directly on the server \u2014 SSH hardening, firewall rules, SSL certificates, software updates, and backups.<\/p>\n\n\n\n<h2 id=\"h-why-web-hosting-security-matters\" class=\"wp-block-heading\">Why Web Hosting Security Matters<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A compromised server costs more than the time to fix it. Downtime loses visitors and revenue; a data breach carries legal exposure under GDPR and similar regulations; Google deindexes sites hosting malware. On an unmanaged VPS \u2014 the type Contabo provides \u2014 you hold full root access, which means full responsibility above the hypervisor layer. Contabo handles physical security, network-level DDoS mitigation, and hypervisor isolation. Everything above that \u2014 the OS, your applications, your access rules \u2014 is yours to harden.<\/p>\n\n\n\n<h2 id=\"h-what-your-hosting-provider-should-handle\" class=\"wp-block-heading\">What Your Hosting Provider Should Handle<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before hardening anything yourself, know what your provider covers. A reputable host should handle the following infrastructure-level protections:<\/p>\n\n\n\n<div class=\"contabo-table-wrap\" style=\"overflow-x:auto; margin:24px 0; font-family:Calibri, Arial, sans-serif;\">\n  <table style=\"border-collapse:collapse; width:100%; min-width:560px; font-family:Calibri, Arial, sans-serif; font-size:15px; line-height:1.5; color:#333333;\">\n    <caption style=\"text-align:left; font-weight:bold; color:#365F91; font-size:16px; margin-bottom:8px; caption-side:top;\">\n      What Your Hosting Provider Should Handle: Infrastructure-Level Security Coverage\n    <\/caption>\n    <thead>\n      <tr style=\"background-color:#4F81BD;\">\n        <th scope=\"col\" style=\"padding:12px 16px; text-align:left; color:#ffffff; font-weight:bold; border:1px solid #3a6ea5;\">Security layer<\/th>\n        <th scope=\"col\" style=\"padding:12px 16px; text-align:left; color:#ffffff; font-weight:bold; border:1px solid #3a6ea5;\">What it protects<\/th>\n        <th scope=\"col\" style=\"padding:12px 16px; text-align:left; color:#ffffff; font-weight:bold; border:1px solid #3a6ea5;\">Contabo provision<\/th>\n      <\/tr>\n    <\/thead>\n    <tbody>\n      <tr style=\"background-color:#f7f9fc;\">\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef; font-weight:bold;\">DDoS protection<\/td>\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef;\">Absorbs volumetric and protocol attacks before they reach your server<\/td>\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef;\">Always-on DDoS mitigation \u2014 included on all VPS plans at no extra cost<\/td>\n      <\/tr>\n      <tr style=\"background-color:#ffffff;\">\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef; font-weight:bold;\">Network firewall<\/td>\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef;\">Filters inbound traffic at the network edge before it hits your VPS<\/td>\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef;\">Free Contabo Firewall on every VPS \u2014 activate at new.contabo.com \u2192 Network Services \u2192 Firewall<\/td>\n      <\/tr>\n      <tr style=\"background-color:#f7f9fc;\">\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef; font-weight:bold;\">Physical security<\/td>\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef;\">Prevents unauthorised physical access to the hardware your VPS runs on<\/td>\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef;\">ISO 27001-certified data centers; strict access control and CCTV<\/td>\n      <\/tr>\n      <tr style=\"background-color:#ffffff;\">\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef; font-weight:bold;\">Hypervisor isolation<\/td>\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef;\">Ensures one tenant&#8217;s VPS cannot read or affect another&#8217;s data<\/td>\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef;\">KVM-based virtualisation \u2014 your VPS is fully isolated from other customers<\/td>\n      <\/tr>\n      <tr style=\"background-color:#f7f9fc;\">\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef; font-weight:bold;\">Network infrastructure<\/td>\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef;\">Protects traffic between data center nodes and upstream providers<\/td>\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef;\">Handled at the infrastructure layer by Contabo&#8217;s network team<\/td>\n      <\/tr>\n    <\/tbody>\n  <\/table>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">One important distinction: Contabo is an unmanaged VPS provider. OS configuration, application-level security, user accounts, and backups are entirely the customer&#8217;s responsibility. That is not a limitation \u2014 it is the tradeoff for full root control.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Web Hosting Security Best Practices: What You Control<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">These seven steps cover the most common attack vectors on a Linux VPS. Apply them in order on any fresh server before it goes into production.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Disable SSH password authentication. Edit \/etc\/ssh\/sshd_config: set PasswordAuthentication no, PubkeyAuthentication yes, PermitRootLogin no. Restart SSH after: sudo systemctl restart ssh. Use SSH key pairs only \u2014 brute-force attacks become pointless.<\/li>\n\n\n\n<li>Configure a software firewall. On Ubuntu, UFW is the simplest path: sudo ufw default deny incoming &amp;&amp; sudo ufw allow 443 &amp;&amp; sudo ufw allow 80 &amp;&amp; sudo ufw allow &lt;your-ssh-port> &amp;&amp; sudo ufw enable. Then activate the Contabo network-level Firewall at new.contabo.com \u2192 Network Services \u2192 Firewall for an additional perimeter layer.<\/li>\n\n\n\n<li>Install an SSL\/TLS certificate and enforce HTTPS. Let&#8217;s Encrypt is free: sudo apt install certbot &amp;&amp; sudo certbot &#8211;nginx (or &#8211;apache). Redirect all HTTP traffic to HTTPS via your web server config \u2014 serving content over HTTP in 2026 is an unnecessary risk.<\/li>\n\n\n\n<li>Enable automatic security updates. On Ubuntu: sudo apt install unattended-upgrades &amp;&amp; sudo dpkg-reconfigure unattended-upgrades. Unpatched vulnerabilities in the OS and packages are the most common breach entry point.<\/li>\n\n\n\n<li>Set up automated off-server backups. Contabo Auto Backup is an available add-on. For full control, use rsync or rclone to push daily backups to Contabo Object Storage (from \u20ac2.49\/250 GB). Test restores monthly \u2014 a backup you have never restored is untested.<\/li>\n\n\n\n<li>Apply the principle of least privilege. Never run web servers, databases, or application code as root. Create a dedicated system user per service: adduser &#8211;system &#8211;no-create-home appuser. Limit sudo access to only the users who need it.<\/li>\n\n\n\n<li>Install Fail2ban. It monitors authentication logs and automatically bans IPs after repeated failures: sudo apt install fail2ban. Default config protects SSH; configure jails for Nginx, Apache, or your app as needed.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">DDoS Protection: What It Is and Why Every Hosted Site Needs It<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A DDoS attack \u2014 Distributed Denial of Service \u2014 floods your server from many sources simultaneously to exhaust bandwidth, CPU, or RAM until legitimate traffic can&#8217;t get through. Three main types exist: volumetric attacks that saturate your bandwidth, protocol attacks like SYN floods that exhaust connection state tables, and application-layer attacks like HTTP floods targeting specific endpoints.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Contabo&#8217;s always-on network-level DDoS mitigation filters volumetric and protocol attacks before they reach your VPS \u2014 this runs automatically with no configuration required. What it does not cover: sophisticated application-layer attacks crafted to look like legitimate traffic. For those, add Cloudflare&#8217;s free plan in front of your domain. Cloudflare acts as a reverse proxy, absorbing HTTP floods and offering a WAF (Web Application Firewall) on paid plans. The combination of Contabo&#8217;s network-layer DDoS mitigation plus Cloudflare&#8217;s application-layer filtering covers the full attack surface for the vast majority of self-hosted sites and APIs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What to Look For in a Secure Web Hosting Provider<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Use this checklist when evaluating any hosting provider, particularly before migrating a production site.<\/p>\n\n\n\n<div class=\"contabo-table-wrap\" style=\"overflow-x:auto; margin:24px 0; font-family:Calibri, Arial, sans-serif;\">\n  <table style=\"border-collapse:collapse; width:100%; min-width:560px; font-family:Calibri, Arial, sans-serif; font-size:15px; line-height:1.5; color:#333333;\">\n    <caption style=\"text-align:left; font-weight:bold; color:#365F91; font-size:16px; margin-bottom:8px; caption-side:top;\">\n      Secure Web Hosting Provider Checklist: Features to Evaluate\n    <\/caption>\n    <thead>\n      <tr style=\"background-color:#4F81BD;\">\n        <th scope=\"col\" style=\"padding:12px 16px; text-align:left; color:#ffffff; font-weight:bold; border:1px solid #3a6ea5;\">Feature<\/th>\n        <th scope=\"col\" style=\"padding:12px 16px; text-align:left; color:#ffffff; font-weight:bold; border:1px solid #3a6ea5;\">Why it matters<\/th>\n        <th scope=\"col\" style=\"padding:12px 16px; text-align:left; color:#ffffff; font-weight:bold; border:1px solid #3a6ea5;\">What to ask<\/th>\n      <\/tr>\n    <\/thead>\n    <tbody>\n      <tr style=\"background-color:#f7f9fc;\">\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef; font-weight:bold;\">Always-on DDoS protection<\/td>\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef;\">Attacks arrive without warning \u2014 opt-in protection is too slow<\/td>\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef;\">Is it included on all plans or only premium tiers?<\/td>\n      <\/tr>\n      <tr style=\"background-color:#ffffff;\">\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef; font-weight:bold;\">Network-level firewall<\/td>\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef;\">First filter before traffic reaches your server or OS<\/td>\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef;\">Is it free and self-configurable, or managed-only?<\/td>\n      <\/tr>\n      <tr style=\"background-color:#f7f9fc;\">\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef; font-weight:bold;\">Full root access<\/td>\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef;\">Lets you apply SSH hardening, custom firewall rules, and OS-level security<\/td>\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef;\">Required on VPS; typically absent on shared hosting<\/td>\n      <\/tr>\n      <tr style=\"background-color:#ffffff;\">\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef; font-weight:bold;\">KVM hypervisor isolation<\/td>\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef;\">Prevents cross-tenant memory access \u2014 relevant for PCI-DSS, GDPR<\/td>\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef;\">Ask which virtualisation layer is used (KVM vs OpenVZ)<\/td>\n      <\/tr>\n      <tr style=\"background-color:#f7f9fc;\">\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef; font-weight:bold;\">ISO 27001-certified data centers<\/td>\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef;\">Confirms physical and procedural security meets audited standards<\/td>\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef;\">Ask for certification documents or check the provider&#8217;s security page<\/td>\n      <\/tr>\n      <tr style=\"background-color:#ffffff;\">\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef; font-weight:bold;\">Backup options<\/td>\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef;\">Ransomware and admin errors both require clean restore points<\/td>\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef;\">Available as add-on? Off-server? How long are backups retained?<\/td>\n      <\/tr>\n      <tr style=\"background-color:#f7f9fc;\">\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef; font-weight:bold;\">Unmanaged option<\/td>\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef;\">Full control over your software stack and security configuration<\/td>\n        <td style=\"padding:12px 16px; border:1px solid #dfe6ef;\">Can you install, configure, and update everything yourself?<\/td>\n      <\/tr>\n    <\/tbody>\n  <\/table>\n<\/div>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-04c008b2\"><h2 class=\"uagb-heading-text\">FAQ: Web Hosting Security<\/h2><\/div>\n\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1785854119804\"><strong class=\"schema-faq-question\">What is web hosting security?<\/strong> <p class=\"schema-faq-answer\">Web hosting security is the combination of infrastructure protections \u2014 DDoS mitigation, network firewalls, physical data center controls \u2014 and server-level hardening \u2014 SSH key authentication, UFW firewall rules, SSL certificates, software updates, and automated backups \u2014 that keeps a hosted website and its data protected from attacks, breaches, and data loss.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1785854131337\"><strong class=\"schema-faq-question\">Does web hosting include security?<\/strong> <p class=\"schema-faq-answer\">It depends on the type. Shared and managed hosting typically bundles DDoS protection, malware scanning, and automatic OS updates. Unmanaged VPS hosting \u2014 what Contabo provides \u2014 includes infrastructure security: DDoS mitigation, network firewall, and KVM hypervisor isolation. OS-level hardening, application security, and backups are the customer&#8217;s responsibility. That tradeoff gives you full control in exchange for managing your own security posture.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1785854145601\"><strong class=\"schema-faq-question\">What is the most secure type of web hosting?<\/strong> <p class=\"schema-faq-answer\">Security depends more on configuration than on hosting type. A well-hardened unmanaged VPS beats a poorly configured dedicated server. Dedicated servers remove the multi-tenant hypervisor surface entirely. Unmanaged VPS gives full control to those who apply SSH hardening, firewall rules, and updates. Shared hosting limits your ability to apply OS-level security at all. For most developers and SysAdmins, a hardened VPS with DDoS protection and SSH key auth is the practical best answer.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1785854161398\"><strong class=\"schema-faq-question\">How do I enable DDoS protection on my Contabo VPS?<\/strong> <p class=\"schema-faq-answer\">DDoS protection is active by default on all Contabo VPS plans \u2014 no setup required. For additional network-level filtering, activate the Contabo Firewall: log in at new.contabo.com, go to Network Services \u2192 Firewall, and add rules to allow only the ports your server needs. For application-layer protection on top of that, route your domain through Cloudflare.<\/p> <\/div> <\/div>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-c677844b\"><h2 class=\"uagb-heading-text\">Articles you may like<\/h2><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/contabo.com\/blog\/vps-security-checklist\/\">VPS Security Checklist: 9 Essential Steps After Setup<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Web hosting security is the set of measures that protect a web server and its hosted sites from unauthorized access, data breaches, DDoS attacks, and malware. It operates on two levels: what your hosting provider handles at the infrastructure layer \u2014 DDoS mitigation, network firewalls, and physical data center controls \u2014 and what you manage [&hellip;]<\/p>\n","protected":false},"author":78,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[4706],"tags":[],"ppma_author":[4285],"class_list":["post-33080","post","type-post","status-publish","format-standard","hentry","category-explainer"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"Jie Guo","author_link":"https:\/\/contabo.com\/blog\/author\/jieguo\/"},"uagb_comment_info":0,"uagb_excerpt":"Web hosting security is the set of measures that protect a web server and its hosted sites from unauthorized access, data breaches, DDoS attacks, and malware. It operates on two levels: what your hosting provider handles at the infrastructure layer \u2014 DDoS mitigation, network firewalls, and physical data center controls \u2014 and what you manage&hellip;","authors":[{"term_id":4285,"user_id":78,"is_guest":0,"slug":"jieguo","display_name":"Jie Guo","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/4e0d981b06988d6d456834e9d55bc9e713e918fa8444325543d14f448154106b?s=96&d=mm&r=g","author_category":"","user_url":"","last_name":"Guo","first_name":"Jie","job_title":"","description":""}],"_links":{"self":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/33080","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/users\/78"}],"replies":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/comments?post=33080"}],"version-history":[{"count":1,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/33080\/revisions"}],"predecessor-version":[{"id":33081,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/33080\/revisions\/33081"}],"wp:attachment":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/media?parent=33080"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/categories?post=33080"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/tags?post=33080"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=33080"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}