Forum Moderators: phranque
Therefore, I wish to use htaccess to block the offending IP's but cannot work out how to format a one-line Rewrite Cond. for multiple IP's.
eg: RewriteCond %{REMOTE_ADDR} !^173\.45\.
(I wish to block 173.45.64.0 - 173.45.127.255)
Any help greatly appreciated.
Many thanks.
Is there any difference between using 'Deny from' and 'RewriteCond&{' ?
RewriteCond offers more versatility and efficiency in strings, making it possible to reduce the overall number of lines in your htaccess. (if your just beginning the process of denying visitors, than making your file compact is not something that requires immediate attention.)