blacklist 2.65

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
10 years ago
Hi,

I can't find blacklist settings in admin panel (nop 2.65). How to easily ban few ip addresses at 2.65? I've already installed recapcha for registration purposes but that won't prevent people from sending email through contact form
one of the ips 198.200.33.100
10 years ago
See this post about using rewrite rules
10 years ago
How to block IP address with web.config

wrote by Tom at arvixe forum:

Indeed, the ipSecurity element is locked by default and, for security reasons, not available for shared hosting.

To block a single IP or an IP range, you can utilize rewrite rules as shown in the example below.

  <system.webServer>
    <rewrite>
      <rules>
        <rule name="Block access from unwanted REMOTE_ADDR">
          <match url=".*" />
          <conditions logicalGrouping="MatchAny">
            <add input="{REMOTE_ADDR}" pattern="\b0\.0\.0\.0\b" />
            <add input="{REMOTE_ADDR}" pattern="\b255\.255\.255\.255\b" />
            <add input="{REMOTE_ADDR}" pattern="\b(25[0-5]|2[0-4][0-9]|1?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|1?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|1?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|1?[0-9][0-9]?)\b" />
          </conditions>
          <action type="AbortRequest" />
        </rule>
      </rules>
    </rewrite>
  </system.webServer>

The first condition blocks IP 0.0.0.0
The second condition blocks IP 255.255.255.255
The third condition blocks any IP from 0.0.0.0 to 255.255.255.255

\b at the beginning and the end are required (!) to tell the rewrite engine to evaluate the whole pattern.
\. escapes the dot.


It is working well
10 years ago
You might also consider using a service like CloudFlare to handle blocking for you.  We've been using it on some of our sites and I really find the number of bad registrations, fake reviews, web scraping, and other mischievous behavior has gone down.  There's also a nice performance gain on the static content within your site.  Overall, very happy with their service.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.