GithubHelp home page GithubHelp logo

rvdhout / iis-geoip2block-module Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 5.0 2.21 MB

A modified geoblock module originaly created by Triple IT for IIS 7/8.x. It can be added to any application pool using integrated pipeline mode running .Net 4 (now also on IIS 10). It uses the IPv4 address to determine the geographic location of the request by using Maxminds GeoIP2 database and takes action accordingly.

License: GNU General Public License v2.0

C# 100.00%

iis-geoip2block-module's People

Contributors

dependabot[bot] avatar kimboslice99 avatar rvdhout avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

iis-geoip2block-module's Issues

Updating module may cause 'Could not load file or assembly...' error - A solution

Just wanted to share some issues I had when I updated

I was getting errors like This method cannot be called during the application's pre start initialization stage within IIS Manager and IIS was throwing the following error Could not load file or assembly 'IISGeoIP2blockModule, Version=2.4.0.0, Culture=neutral, PublicKeyToken=50262f380b75b73d' or one of its dependencies. The system cannot find the file specified.

The solution is to go to .Net Compilation -> Assemblies, and update the version to match

This was a bit of a head scratcher for me, so I hope this is useful information to others using this module

Sporadic 500 errors

I've been seeing this on some sites that have the module enabled, it used to be bad enough that I couldn't use this module on most sites, since updating to 2.4.1.0 it has gotten better but still happens sometimes, I've had a look at failed request trace logs

ModuleName
Geoblocker 

Notification
BEGIN_REQUEST 

HttpStatus
500 

HttpReason
Internal Server Error 

HttpSubStatus
0 

ErrorCode
The operation completed successfully.
 (0x0) 

Not really any useful information there, suppose I should compile the module in debug mode and watch DebugView? Any suggestions? Thanks for your efforts!

Installation help

Hello, I'm trying to install this module, but when I try to compile it, it tells me JsonProperty and JsonPropertyAttribute were not found.

I tried adding the Newtonsoft.Json module, and it compiled well but it gave me (of course) 2 dlls.
When I try to install on server, it tells me always there are some reference missing.

Any way to compile without 3rd party libraries?
Thanks.
Dario.
immagine

Issues loading module?

Successfully compiled the module, and followed the 'Geoblocker - Manual' however when clicking on the module in IIS it just closes and logs this in event viewer

IISMANAGER_ERROR_LOADING_PROVIDER_TYPE IIS Manager could not load type 'IisGeoblockModule.GeoblockModuleProvider, IISGeoIP2blockModule, Version=2.4.0.0, Culture=neutral, PublicKeyToken=50262f380b75b73d' for module provider 'Geoblocker' that is declared in %windir%\system32\inetsrv\config\administration.config. Verify that the type is correct, and that the assembly that contains the module provider is in the Global Assembly Cache (GAC). Exception:System.TypeLoadException: Could not load type 'IisGeoblockModule.GeoblockModuleProvider' from assembly 'IISGeoIP2blockModule, Version=2.4.0.0, Culture=neutral, PublicKeyToken=50262f380b75b73d'. at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type) at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName) at System.Type.GetType(String typeName, Boolean throwOnError) at Microsoft.Web.Management.Server.AdministrationModuleProvider.GetModuleProvider(String userName, String connectionName) Process:InetMgr Connection:X53E\X53E

Any config pointers to get me on the right track?

IPv6 support

Thanks for releasing this!

Is't possible to add IPv6 support?

Building instructions

First of all thank you for updating this module for IIS 10. It would be nice if you could provide a compiled release and/or outline how to build the dll. I have a working VS 2017 setup but a missing Microsoft.Web.Management reference that I'm having difficulty locating (installing Windows 8.1 SDK did not solve the problem).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.