Greetings;
I write and publish several IP blocklists for use on Apaches hosted websites. The foremost version is used in .htaccess files in shared hosting accounts. It uses the Apache mod_access module to deny from or allow from listed IP addresses and CIDRs.
I have been asked several times by people with websites hosted on Windows Server shared accounts, how they can import my IP blocklists. One version of each blocklist is already in iptables format, which server admins can import into the Windows Server firewall. But, common users, with shared hosting accounts cannot access the firewall.
I am hoping that someone here knows of some method of converting .htaccess Mod_Access "deny from" directives into a form usable and importable into a
shared Windows hosting account.
Here is an example of what I am referring to:
<Files *>
order deny,allow
deny from 192.168.0.1 192.168.0.0/16 10.0.0.0/8
deny from .....
</Files>
Note, that some of my deny from lists include hundreds of space separated CIDRs. I would be willing to convert them into single lines of deny froms if necessary. My iptables blocklists are already one per line, like this example:
192.168.0.0/16
192.168.1.0/23
192.168.3.4
..... (dozens more) .....
I don't particularly mind if the solution is commercial or open source. It is up to end users to choose their method, if any exists. All I have found thus-far is ISAPI Rewrite, which deals with Mod_Rewrite engine directives, but not Mod_Access (to my knowledge). If someone knows differently, first hand, please let me know.
Thanks in advance!