Skip to content

bogusfocused/SpamBlock.Net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpamBlock.Net

ASP.Net client for http:BL

Block easily those spammers. Project Honey Pot is the first and only distributed system for identifying spammers and the spambots they use to scrape addresses from your website.

Each time a visitor visits your website, SpamBlock checks if IP is blacklisted. In case visitor IP is blacklisted, it sends a 403.6 IP Rejected response. SpamBlock alows the request whenever it fails for any reason including lookup failures or an IPv6 address. SpamBlock works only with IPv4 addresses as Project Honey Pot only lists IPv4 addresses.

To use this library, you must register with Project Honey Pot and you must also request an Access Key to make use of the service.

This library has a IIS Module targeting .Net 4.6.1 and a ASP.NET Core middleware targeting .Net Standard 2.0

  1. Download the latest SpamBlock nuget package.

  2. Add access key to appSettings in web.config

<configuration>
  <appSettings>
    <add key="AccessKey" value="YOUR_ACCESS_KEY" />
    <add key="ThresholdThreatScore" value="50" /> <!-- Allows values with score less than threshold. Optional. Valid values 0 to 255. Default value is 50. -->
    <add key="MaxAgeInDays" value="10" />   <!-- Allows values with age less than max age. Optional. Valid values 0 to 255. Default value is 10. -->
  </appSettings>
</configuration>
  1. Add the module in your web.config.
<configuration>
   <system.webServer>
      <modules>
         <add name="SpamBlockModule" type="SpamBlock.SpamBlockModule,SpamBlock"/>
      </modules>
   </system.webServer>
</configuration>

About

ASP.Net client http:BL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages