Keep the uninstallgac.ps1 in case you need to uninstall the dll.
Run installgac.ps1 to install the dll into the GAC.
In both scripts, edit the 2 lines containing the path to the full path for your new folder then save the scripts. GacRemove( "C:\\IP2LocationHTTPModule.dll ") ::Load( "System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ")
In the case of IN, if the visitor’s country is in the list for that rule and the matches the browsed URL then the visitor will be blocked via a HTTP 403 status. A regular expression string to match various pages and sub-folders.Just add another segment if you want another rule. Under, each is used to configure a rule for blocking visitor access to the website.Just add another segment if you want to have another IP address bypass the rules. Under, each is used to configure an IP address to bypass the block/redirect rules.You can turn this off by changing the value to False. When the value is True, your webpages can have access to IP Geolocation data for your visitor’s IP address via server variables.Leave blank unless you need to read the IP from a custom field.No longer required, just leave this blank.The relative path for the BIN database file that you have copied into the bin folder of your website.What should I change? (ByPassIPs, BlockRules & RedirectRules are optional if you do not require them)
Installation & Configuration (per website mode)Ĭopy the IP2LocationHTTPModule.dll, IP2Location-config.xml and the BIN data file to the bin folder of your website. If you install in per server mode, you just need to install and configure once and all websites hosted on that machine will be able to use IP2Location. If you install in per website mode, you will need to install and configure for every website that you wish to add the IP2Location feature. NOTE: You can choose to install the IP2Location IP Geolocation HTTP Module in either per website mode or per server mode. NOTE: After compilation, the final IP2LocationHTTPModule.dll will be in the merged folder as the post-build event will merge the IntXLib.dll with the original IP2LocationHTTPModule.dll to make it easier for deployment. Or just use the IP2LocationHTTPModule.dll in the dll folder. Just open the solution file in Visual Studio and compile. NET 2.0 application pool in integrated mode) Compilation Supported Microsoft IIS Versions: 7.0, 7.5, 8.0, 8.5, 10.0 (website needs to be running under a.
This IIS managed module allows user to get geolocation information about an IP address such as country of origin, region, city, latitude, longitude, ZIP code, ISP, domain name, time zone, connection speed, IDD code, area code, weather station code, and weather station name, mobile country code (MCC), mobile network code (MNC), carrier brand, usage type, elevation, address type and IAB category.