Mubasher

Mubasher / CLIENT ACCESS

Your client area is next.

Contact Mubasher

No login details are collected on this trial.

What are you looking for?

Search services, hosting guides and company news.

← Blog & News

Technology ·

Brute-force and DDoS attacks: what hosting customers can do

Floods of login attempts or traffic can slow or take down a site. Learn the difference and the steps that reduce the damage.

Cover illustration: Brute-force and DDoS attacks: what hosting customers can do

Two kinds of attack are common against small business sites. They look similar from outside, because both can make the site slow, but they are handled differently.

Brute-force attacks

Bots try thousands of user names and passwords on login pages such as wp-login.php, the hosting panel, mail and SSH. They succeed when passwords are weak or reused.

What helps

  • Long, unique passwords and two-factor sign in.
  • Limits on failed attempts, with temporary blocks.
  • Changing the default admin user name.
  • Restricting the admin area or SSH to known addresses where possible.
  • Turning off services you do not use, such as XML-RPC on WordPress.

DDoS and traffic floods

A distributed denial of service attack sends so much traffic that real visitors cannot get through. Large attacks must be absorbed in the network, before they reach your server.

What helps

  • A caching layer so most requests do not reach PHP and the database.
  • A web application firewall and rate limits to filter abusive requests.
  • A content delivery or protection service in front of the site if you are a frequent target.
  • Hosting that has network-level protection. Ask your provider what it offers and what its limits are.

How to recognise which one

Check the logs. Many requests to login pages from many addresses point to brute force. Huge numbers of requests to the home page or a search page point to a flood.

During an attack

  1. Collect the log lines and the time it started.
  2. Contact your provider early.
  3. Block the abusive addresses or paths that you can identify.
  4. Tell customers if the outage is long.

Common questions

Can a hosting provider stop every attack?

Providers filter a lot of unwanted traffic, but some attacks need action from you as well, such as strong passwords, login limits and updates. Ask what protection your plan includes and what it does not.

How do I tell a real traffic spike from an attack?

A campaign or news mention brings visitors to many different pages from many places. An attack tends to hit one URL, such as the login page, or sends very high requests with no real browsing pattern.

Do I need to pay for DDoS protection?

It depends on your risk. A small brochure site may need only the provider's basic filtering, while a store or service that cannot be offline may need more. Ask for what is included before you buy.

What should I log during an attack?

Note the time, the targeted URLs, the error codes and any messages from the provider. This record helps support and helps you decide what to change afterwards.

When to ask for help and what to send

During an attack, contact support early and send the time it started, the affected URLs, and what you see in the logs. Do not wait to see if it stops. Support can apply filtering at the server or network level that you cannot set from the panel.

A realistic example

A site slows down every evening. The logs show thousands of login attempts from many addresses. The owner turns on login rate limiting, adds a second factor for admins, and puts a filter in front of the site. The attempts keep coming, but they no longer reach the login page.

Mistakes to avoid

  • Using a weak admin password.
  • Ignoring unusual traffic in the logs.
  • Waiting for an attack before setting limits.

Quick checklist

  • Use strong, unique passwords and limit login attempts.
  • Keep software updated.
  • Protect the login page and the admin area.
  • Know who to contact and how during an incident.
  • Keep a recent backup and a short incident note.