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.
War dieser Artikel hilfreich?
Danke für Ihr Feedback! Brauchen Sie Hilfe? Eröffnen Sie ein Ticket.
