This is the IP range I wish to block 61.19.0.0 - 61.19.255.255 I've google it and found a few information's, but how do you continue the restriction list?
First block /18 starting at 0: 0-63 (64 class C addresses)
then block /20 starting from there: 64-79 (16 class C addresses)
then block /22 starting from there: 80-83 (4 class C addresses)
what is the next value?
block /22 ? which block covers?
also if i want to ban from
61.0.0.0 - 61.255.255.255 how it's done?
thanks
htaccess, IP deny rules must be created. These rules can be configured to block all users or specific users (based on their IP address) from accessing website resources. You can also use . htaccess to block a domain, deny access to certain file types, specific files (for example, configuration files), and more.
htaccess IP deny access. To deny access to a block of IP addresses, simply omit the last octet from the IP address: deny from 123.456. 789.
You can block it by using:
Order Deny,Allow
Deny from 61.19
or you can use CIDR notation:
Deny from 61.19.0.0/16
To achieve the secondary goal of blocking all of 61.0.0.0-61.255.255.255, you would modify the above addresses to either:
Deny from 61
or in CIDR format
Deny from 61.0.0.0/8
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