I have detected that a range of IP addresses may be used in a malicious way and I don't know how to block it.
I would like to block the range 66.249.74.* from accessing my website by using the .htaccess file.
Head to Country IP Blocks homepage. Select the countries you want to block or allow. On the Select Format section, choose Apache . htaccess Deny or Apache .
Tutorial Apache - Blocking an IP address networkInstall the Apache server. Enable the required Apache modules. Edit the Apache configuration file for the default website. Add the following lines to this configuration file.
You could use:
Order Allow,Deny Deny from 66.249.74.0/24 Allow from all
Or you could use this:
RewriteEngine on RewriteCond %{REMOTE_ADDR} ^66\.249\.74\. RewriteRule ^ - [F]
Use just the first 3 octets
Order Allow,Deny Deny from 66.249.74. Allow from all
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With