IP Blocker and Hotlink Protection
How to block unwanted IP addresses and stop other sites from using your images and files.
Two cPanel tools in the Security section help when someone overloads you with requests or downloads your images.
IP Blocker#
It blocks access to your site from a specific IP address or range.
- Open Security → IP Blocker.
- In Add an IP or Range enter an address (e.g.
203.0.113.15) or a range (203.0.113.0/24). - Click Add.
You can see addresses in cPanel under Metrics → Raw Access or Visitors. To remove a block, click Delete next to the rule below the list.
Hotlink Protection#
Hotlinking is when another site loads your images directly from your server and uses up your traffic.
- Open Security → Hotlink Protection and click Enable.
- Check the list of allowed addresses. Your domain must be on it.
- In Block direct access for these extensions list the file types (e.g.
jpg, jpeg, png, gif). - Optionally enable Allow direct requests, which lets an image be opened directly in a browser.
- Click Submit.
Both tools write rules to .htaccess: see .htaccess basics. If you suspect an attack, read Hacked website.
¿Te ha resultado útil este artículo?
¡Gracias por tu opinión! ¿Necesitas ayuda? Abre un ticket.
Artículos relacionados
.htaccess basicsWhat .htaccess is, how to edit it safely and examples of common rules.Account security and passwordsPractical measures to protect cPanel, email and your site: strong passwords, updates and safe habits.Hacked website: what to doSteps to stop an attack, clean malicious code and prevent it from happening again.Two-factor authentication (2FA)Enable 2FA in cPanel with an authenticator app and protect your login even if the password leaks.
