← Back to blog

Shared Hosting Risks: The Neighbor That Can Sink Your Website

You are paying CHF 5 per month for web hosting. Your website loads, your emails work, and everything seems fine. What could go wrong?

Quite a lot, actually. That CHF 5 buys you a tiny slice of a server shared with dozens or even hundreds of other websites. You have no idea who your neighbors are, what software they run, or how well they maintain their sites. And here is the problem: their security failures can directly affect your business.

This article explains how shared hosting actually works under the hood, what risks it introduces, and what alternatives exist. Some of those alternatives are surprisingly affordable.

How Shared Hosting Actually Works

Shared hosting means exactly what it sounds like. One physical server (or virtual machine) runs multiple websites belonging to different customers. Everyone shares the same CPU, RAM, disk space, IP address, and often the same PHP installation and MySQL server.

The hosting provider uses software like cPanel, Plesk, or DirectAdmin to create isolated user accounts. Each customer gets their own directory, their own FTP credentials, and their own database. The isolation between accounts is handled by the operating system's file permissions and, in better setups, by containerization technologies like CloudLinux.

But "isolation" on shared hosting is relative. The level of separation is nothing compared to what you get with a dedicated server or even a VPS. Think of it like an apartment building. You have your own front door, but you share the plumbing, the electrical system, the foundation, and the roof. If the apartment below you floods, your ceiling gets wet.

The Economics of Shared Hosting

A decent server costs somewhere between CHF 80 and CHF 300 per month to operate. If a hosting company puts 200 websites on that server and charges each customer CHF 5, they collect CHF 1,000 per month. That is their business model. The more sites per server, the higher the profit margin.

This economic incentive is directly at odds with your security and performance needs. Every additional tenant on the server increases your risk and decreases your available resources.

Cross-Site Contamination

This is the biggest risk of shared hosting, and the one most business owners do not know about. If one website on your shared server gets hacked, the attacker may be able to reach your files too.

How It Happens

When an attacker compromises a poorly maintained WordPress site on your server (say, one running a plugin with a known file upload vulnerability), they gain the ability to execute code as that site's user. From there, they can attempt to:

  • Read files belonging to other accounts if file permissions are misconfigured (which they frequently are on cheap hosting).
  • Access shared temporary directories like /tmp where session files and uploaded files may be temporarily stored.
  • Exploit local privilege escalation vulnerabilities in the server's operating system or kernel to gain root access, which gives them access to every site on the server.
  • Access shared database servers where all tenant databases are hosted, sometimes with predictable naming conventions and weak credentials.

A Real Scenario

We have seen this firsthand during security assessments. A client's ecommerce site was on shared hosting. The site itself was well-maintained, with current software versions and strong passwords. Yet malware appeared in their files. The source? A completely unrelated website on the same server had been compromised weeks earlier. The attacker used a local privilege escalation exploit to move laterally across the server.

The client's site was clean. Their neighbor's site was not. But they paid the price.

Noisy Neighbors: Performance Under Someone Else's Control

Performance is the other major casualty of shared hosting. Since all tenants share CPU, RAM, and disk I/O, one misbehaving site can drag everyone else down.

What Causes Noisy Neighbor Problems

  • Traffic spikes: If another site on your server goes viral or gets hit by a DDoS attack, the server's resources get consumed and your site slows to a crawl.
  • Poorly written code: A neighbor running unoptimized database queries or memory-intensive scripts can eat up CPU and RAM that you need.
  • Cron jobs and batch processes: Heavy scheduled tasks (like mass email sending or large database exports) by other tenants can create periodic slowdowns that are hard to diagnose.
  • Disk I/O contention: When multiple sites read and write to the same physical disk simultaneously, everything slows down. This is especially bad for database-heavy sites.

The hosting provider may implement resource limits per account, but enforcement varies wildly. Some hosts are strict. Many are not, because strict enforcement leads to customer complaints and support tickets, which cost money.

The Impact on Your Business

Page load speed directly affects conversion rates. Multiple studies have shown that every additional second of load time reduces conversions by 7-10%. If your site is slow because of a neighbor's activity, you are losing money for reasons entirely outside your control.

Search engines also factor page speed into rankings. Google has been increasingly explicit about this. A slow-loading site will rank lower than a fast one, all other factors being equal.

IP Reputation and Email Blacklisting

On shared hosting, you share an IP address with every other website on the server. This matters more than most people realize, particularly for email.

How IP Reputation Works

Email providers (Gmail, Outlook, Yahoo) maintain reputation scores for IP addresses. If an IP address sends spam, its reputation drops. When the reputation drops below a threshold, emails from that IP start landing in spam folders or get rejected entirely.

On shared hosting, if any tenant on your server sends spam (intentionally or because their site got hacked and is being used as a spam relay), the IP reputation drops for everyone. Your perfectly legitimate business emails start landing in spam folders.

The Damage

  • Client proposals sent by email go to spam and never get read.
  • Order confirmations from your ecommerce site vanish into junk folders.
  • Password reset emails never arrive, locking your customers out of their accounts.
  • Your email domain gets associated with a blacklisted IP, which can take weeks or months to resolve.

You can check if your server's IP is blacklisted using tools like MXToolbox or Spamhaus. We recommend doing this periodically if you are on shared hosting. The results are often unpleasant.

Symlink Attacks

Symlink (symbolic link) attacks are a specific attack technique that affects shared hosting environments. They exploit the way Unix/Linux file systems handle symbolic links.

How Symlink Attacks Work

A symbolic link is like a shortcut. It points from one location in the file system to another. On a shared server, an attacker who controls one account can create a symlink that points to another account's files. For example:

ln -s /home/your-account/wp-config.php /home/attacker-account/stolen.txt

If the server does not properly restrict symlink following across account boundaries, the attacker can read your configuration files. And those configuration files contain database credentials, API keys, and other sensitive data.

Apache's FollowSymLinks directive and the SymLinksIfOwnerMatch option are supposed to prevent this. In practice, many shared hosts do not configure these correctly, or they use other web server software with different (and sometimes weaker) protections.

Shared PHP Sessions

PHP stores session data on disk by default, typically in /tmp or a shared session directory. On shared hosting, multiple sites may use the same session storage location.

The Risk

If an attacker can read session files belonging to your application, they can hijack active user sessions. This means they can impersonate logged-in users on your website, including administrators.

Properly configured shared hosting uses separate session directories per account. But "properly configured" is doing a lot of heavy lifting in that sentence. We have audited shared hosting environments where session isolation was not in place.

Why "Unlimited" Hosting Is a Red Flag

Many budget hosting providers advertise "unlimited" storage, "unlimited" bandwidth, and "unlimited" email accounts. This is marketing, not reality.

What "Unlimited" Actually Means

Read the Terms of Service carefully (which almost nobody does). You will find clauses like:

"Resources are subject to fair use policy. Accounts using excessive resources may be throttled or suspended."

There is no such thing as unlimited resources on a finite server. What "unlimited" means in practice is: "We will not set a hard cap, but if you actually use significant resources, we will throttle you or ask you to upgrade."

The Real Limits

  • CPU time: Usually limited to a few percent of total server capacity per account.
  • RAM: Limited per process, often to 256MB or 512MB.
  • Disk I/O: Throttled to prevent any one account from monopolizing disk access.
  • Concurrent connections: Limited to prevent one site from consuming all available Apache/nginx worker processes.
  • Email sending: Usually capped at a few hundred emails per hour to prevent spam abuse.

The "unlimited" label attracts customers who are focused on price. It is a signal that the hosting provider is competing on price rather than on quality or security. That should concern you.

Cheap Hosting = Shared Resources = Risk

Let us be direct about this. If you are paying less than CHF 10 per month for hosting, you are on a shared server with aggressive tenant density. The hosting company is making money by packing as many sites as possible onto each server and providing minimal support.

This is fine for a personal blog or a hobby project. It is not acceptable for a business website, especially one that handles customer data, processes payments, or represents your company to clients and partners.

What You Risk

RiskImpactLikelihood on Cheap Shared Hosting
Cross-site contaminationYour site gets hacked through a neighborMedium-High
Performance degradationSlow loading, lost customersHigh
IP blacklistingEmails go to spamMedium
Symlink attacksDatabase credentials stolenMedium
Data breachCustomer data exposedMedium
DowntimeSite unreachable during business hoursMedium-High

The "savings" of CHF 50-100 per year on hosting can easily result in losses many times that amount if any of these risks materialize.

Hosting Options Compared: VPS vs Shared vs Managed vs Static Deployment

Let us look at the alternatives. There are more options than most business owners realize, and some of them are not as expensive as you might think.

Shared Hosting

Cost: CHF 3-15/month
Isolation: Minimal
Performance: Variable, dependent on neighbors
Security: Lowest
Management: Provider handles server, you handle your site
Best for: Personal projects, hobby sites

VPS (Virtual Private Server)

Cost: CHF 10-50/month
Isolation: Strong (hardware-level virtualization)
Performance: Dedicated resources, consistent
Security: Good, but you manage the server
Management: You handle everything (OS updates, security patches, firewall)
Best for: Businesses with technical staff or budget for managed services

A VPS gives you your own virtual machine with dedicated CPU, RAM, and storage. Your neighbors cannot affect your performance or security because the isolation is at the hypervisor level, not just the file system level. The trade-off is that you are responsible for server administration, including security updates and configurations.

Managed Hosting

Cost: CHF 30-200/month
Isolation: Strong (typically VPS or dedicated)
Performance: Good to excellent
Security: Good (provider handles server security)
Management: Provider handles server, updates, backups, security
Best for: Businesses running WordPress or other CMS platforms

Managed hosting (like WP Engine, Kinsta, or Flywheel for WordPress) gives you the isolation of a VPS with the convenience of having experts manage the server. They handle updates, security scanning, backups, and performance optimization. The cost is higher, but you are paying for expertise and peace of mind.

Static/CDN-Based Deployment

Cost: CHF 0-20/month (often free for small to medium sites)
Isolation: Complete (no shared server at all)
Performance: Excellent (global CDN, edge caching)
Security: Highest (no server-side code execution, no database exposure)
Management: Minimal (deploy and forget)
Best for: Business websites, marketing sites, landing pages, documentation

The Security Benefits of CDN-Based Hosting

This is where things get interesting, and where most business owners are surprised. Services like Cloudflare Pages, Vercel, and Netlify offer a fundamentally different hosting model that eliminates most of the risks discussed in this article.

How CDN-Based Hosting Works

Instead of running your website on a single server, your site is built into static files (HTML, CSS, JavaScript) and distributed across a global network of edge servers. When someone visits your site, they get served from the nearest edge location. There is no origin server running PHP or a database.

For a deeper explanation, see our article on modern web architecture.

Why It Eliminates Shared Hosting Risks

  • No cross-site contamination: There is no shared server where other sites can be compromised. Your files are served from a CDN that handles millions of sites, but the infrastructure is designed for multi-tenancy from the ground up with proper isolation.
  • No noisy neighbors: CDN resources are distributed globally. One site getting a traffic spike does not affect your site because the load is spread across hundreds of data centers.
  • No IP blacklisting risk: CDN IPs are managed by the provider and are not associated with individual sites. Email is handled separately (as it should be).
  • No symlink attacks: There is no file system to exploit. Your site is immutable once deployed.
  • No server-side vulnerabilities: No PHP, no MySQL, no admin panel, no file upload endpoints. The attack surface is minimal.

Read more about how CDN architecture improves security in our article on CDN security benefits.

Performance That Shared Hosting Cannot Match

CDN-based sites consistently score 95-100 on Google PageSpeed Insights because the content is pre-built and served from edge locations close to the visitor. There is no database query, no PHP execution, no server-side rendering delay. The browser gets a fully formed HTML page in milliseconds.

For a business in Lugano with clients across Switzerland and Europe, this means fast load times in Zurich, Geneva, Munich, and Milan. A shared server in a data center in Germany cannot compete with a CDN that has edge servers in all of these cities.

Cost Comparison: The Surprise

Here is what surprises most people: CDN-based hosting is often cheaper than shared hosting while being dramatically better in every other way.

Hosting TypeMonthly CostPerformanceSecurityMaintenance
Budget shared hostingCHF 5-10Poor to averageLowMedium
Quality shared hostingCHF 15-30AverageLow-MediumMedium
VPS (unmanaged)CHF 10-50GoodMedium (if maintained)High
Managed WordPressCHF 30-200GoodMedium-HighLow
Cloudflare PagesCHF 0 (free tier)ExcellentHighVery Low
VercelCHF 0-20ExcellentHighVery Low
NetlifyCHF 0-19ExcellentHighVery Low

Yes, you read that correctly. Cloudflare Pages has a free tier that handles the needs of most business websites. Vercel and Netlify have generous free tiers as well. Even their paid plans are competitive with shared hosting while being vastly superior in performance and security.

The catch? Your website needs to be built using a static site generator or a modern JavaScript framework (like Next.js, Astro, or Nuxt). Traditional WordPress sites cannot be deployed this way without significant changes. But if you are building a new site or considering a redesign, this is the direction to go.

What Should You Do?

If your business website is currently on shared hosting, here is a practical assessment:

  1. Check your current hosting. Log into your hosting control panel. Look at the server information. How many other sites are on your server? What IP address are you on? Check that IP on MXToolbox for blacklisting.
  2. Evaluate your site type. Is it a WordPress site? A custom CMS? A simple brochure site? The type of site determines your migration options.
  3. Consider your actual needs. Most business websites are informational. They do not need PHP or a database. They need fast loading, good SEO, and reliable uptime. A static site on a CDN delivers all of this better than shared hosting.
  4. Calculate real costs. Include not just the hosting fee, but also the time spent dealing with slowdowns, the risk of security incidents, and the potential impact on your business if the site goes down.
  5. Plan a migration. Moving from shared hosting to a better solution is not as difficult or expensive as you might think, especially if you work with a team that understands modern web architecture.

When Shared Hosting Might Be Acceptable

To be fair, shared hosting is not always wrong. It can be acceptable for:

  • Personal blogs with no commercial purpose.
  • Temporary or throwaway sites (event pages, test environments).
  • Sites with zero sensitive data and no business impact if they go down.

But if your website represents your business, handles any form of customer data, or contributes to your revenue, shared hosting is a false economy. The money you save on hosting is money you risk losing many times over through security incidents, poor performance, and email deliverability problems.

Next Steps

At Envestis, we help businesses in Lugano and across Switzerland migrate from risky hosting environments to secure, high-performance alternatives. Whether that means moving to a managed VPS, rebuilding on a modern stack with CDN deployment, or simply hardening your current setup, we can advise on the best path for your specific situation.

If you want to understand your current hosting risks, get in touch for a free assessment. We will tell you exactly what risks you are exposed to and what it would take to fix them.

Want to know if your site is secure?

Request a free security audit. In 48 hours you get a complete report.

Request Free Audit

Quick Contact