tyre europe cycle parts

Support / PHP / Block access from selected IP addresses

Block access from selected IP addresses

To block selected IP addresses from accessing your website, you can add the following rules to your .htaccess file, typically located in your website’s root directory. Use the format:

</RequireAll> 
	 Require all granted 
	 Require not ip 123.456.789.000 
	 Require not ip 111.222.333.000 
 </RequireAll>

Always make a backup of your .htaccess before editing. Changes take effect immediately.

To block selected countries, you can use this tool: https://www.ip2location.com/free/visitor-blocker

See also: https://httpd.apache.org/docs/2.4/howto/access.html#host

Still can't find what you're looking for?

Contact Support
ellipse iconfooter back ground image
logo
Copyright © 2025 HostPepper. All Rights Reserved.