1. Log in to cPanel
  2. Go to FileManager
  3. At the top right, at Settings, click the button and select "Show Hidden Files (dotfiles)"
  4. Edit the .htaccess file
  5. Add deny from 123.123.123.123 (replace 123. 123. 123.123 with the desired IP address)
  6. Save the file

To block an IP class, just deny from 123.123.123 (replace 123. 123. 123 with the desired IP address)

WARNING: It is recommended that you keep the number of IP blocked to a minimum because a large number of IPs blocked through .htaccess will negatively affect the performance of your website.

Cette réponse était-elle pertinente ? 0 Utilisateurs l'ont trouvée utile (0 Votes)