- Joined
- May 18, 2006
- Posts
- 5,943
- Reaction score
- 103
Hi all,
Can anyone kindly assist me with creating an .htaccess file to block an IP range which is spamming several sites on my server?
I'm getting spam from an originating T-Mobile IP range of 178.100.0.0 - 178.103.255.255. T-Mobile won't do anything about it and never reply.
So, rather than use the WHM to blanket ban T-Mobile users with a wildcard on the entire server, I'd like to individually upload an .htaccess file to block several sites only.
How do I block the entire range as above?
e.g. Would this work?
Help gratefully received, thanks!
Can anyone kindly assist me with creating an .htaccess file to block an IP range which is spamming several sites on my server?
I'm getting spam from an originating T-Mobile IP range of 178.100.0.0 - 178.103.255.255. T-Mobile won't do anything about it and never reply.
So, rather than use the WHM to blanket ban T-Mobile users with a wildcard on the entire server, I'd like to individually upload an .htaccess file to block several sites only.
How do I block the entire range as above?
e.g. Would this work?
Code:
order allow,deny
deny from 178.*.*.*.*
allow from all
Help gratefully received, thanks!