How to block an IP address from your website

If you see unwanted visitors, such as someone repeatedly trying to break in or scraping your site, you can block their IP address. The IP Blocker stops the address from viewing your website.

Steps

If your cPanel uses the Jupiter theme

  1. Log in to cPanel and open Security > IP Blocker.
  2. In IP Address or Domain, type the address you want to block. You can type a single address such as 203.0.113.5, or a range.
  3. Click Add.
  4. The address now appears under Currently-Blocked IP Addresses.

If your cPanel uses the Meridian theme

  1. Log in to cPanel and click Security in the left sidebar.
  2. Open the Protection tab and find the IP Blocker section.
  3. In the Block an IP Address field, enter the address or range you want to block. The field accepts IPv4, IPv6, and CIDR notation, for example 203.0.113.5.
  4. Click + Block. The address appears in the list, and requests from it stop immediately.
  5. To unblock an address, find it in the list and click the trash icon next to it.

When to use the IP Blocker

Use it when your error logs or statistics show one address repeatedly causing problems, such as thousands of requests in a short time or repeated failed login attempts on a WordPress login page. It is a quick fix, but it is not a complete security solution. Keep your software up to date and use strong passwords as well.

Tips and troubleshooting

  • To unblock an address, find it under Currently-Blocked IP Addresses and click Delete.
  • Be careful with ranges. Blocking a short prefix, such as 10., blocks a very large number of addresses, and could block real customers or yourself.
  • Check that you do not block your own address. You can find it by searching for what is my IP in your browser.
  • The IP Blocker only blocks website visits. It does not block email, FTP, or webmail.
  • Many visitors have addresses that change. Blocking one address will not stop a determined attacker.
  • If you are under heavy attack, contact Barrett IT Support. We may be able to block it at the server level.

Need help? Contact Barrett IT Support at support@barrettit.com or call 888.374.4632.

  • 0 Utilizadores acharam útil
Esta resposta foi útil?

Artigos Relacionados

How to check your SSL certificate and secure your website

An SSL certificate encrypts the connection between your website and visitors and makes the...

How to fix "Not secure" warnings and mixed content

Sometimes a website has a valid SSL certificate but the browser still says the site is not secure...

How to change your cPanel password

A strong, unique cPanel password protects your whole hosting account. Change it regularly, and...

How to set up two-factor authentication (2FA) for cPanel and WHM

This article is for people who log in to a Barrett IT hosting account in cPanel, and for reseller...

How to password protect a folder with Directory Privacy

Directory Privacy lets you put a password on a folder of your website, so visitors must log in...