![]() If the country is Malaysia (MY) then the visitor will be redirected to the Malaysian Google page. If the country is Sweden (SE) then the visitor is redirected to the Swedish Google page. The above checks for the country of the IP address. htaccess file, paste something like the following: RewriteEngine On Restart Apache for the above settings to take effect ![]() The redirection is performed by the Apache rewrite module so if you haven’t enabled it, you can do so using the command below. Modify the IP2LocationDBFile parameter for your own folder and BIN filename. ![]() IP2Location-C-Library-master/libIP2Location/ -l IP2Location -c mod_ip2location.cĪdd following lines into the /etc/apache2/nf file. Now, we will compile both the IP2Location C library and the IP2Location Apache module. Navigate to the ip2location-apache-master folder. In your ip2location folder, you should now have 2 sub-folders called ip2location-apache-master and IP2Location-C-Library-master. Next, get the IP2Location Apache module via the below link:ĭownload the above and decompress into the ip2location folder from above. Now, compile the IP2Location C library by running the below commands. Navigate to the IP2Location-C-Library-master sub-folder. The last pre-requisite is the IP2Location BIN database file which you can get from:ĭownload and decompress the BIN file into a folder called ip2location.įirst of all, we need to get the IP2Location C library via the below link:ĭownload the above and decompress in a folder called ip2location. You will need to install the apache2-dev package if you don’t have it installed. We will not cover the installation of Apache 2.4 as there are many guides on the web for that. We will assume that you have a functioning Apache 2.4 web server. In this article, we will demonstrate how to enable geolocation redirection in Apache via the IP2Location Apache Module for the Debian Linux environment. Just copy and paste the widget code below into your webpages.Apache is a popular open-source web server being used on both the Linux and Windows environments. Widgets - Free widgets to display visitor geolocation information on your website.Extensions / Plugins - Free Extensions/Plugins.Excel Add-In- IP2Location Excel Add-In is a free add-in that enables end-users to detect country, region, city, latitude, longitude, ZIP code, ISP, domain name, time zone, connection speed, IDD code, area code, weather station code, weather station name, MCC, MNC, mobile brand name, elevation, and usage type by using an IP address as input parameter.Subscribers can use this script to automate the download process without visiting the download area through browser. Below are the geolocation information provided by using simple device interface: Country Name. Downloader Script - This is a command line script to download IP2Location™ database from the server. The IP2Location application allows user to retrieve current IP address and get information about other IPv4 addresses instantly.IPv4 address class range, registry, assignment and exhaustion. We will discuss several relevant topics i.e. The data was collected using IP2Location database from 2007 to 2016. Traceroute - This is a free service to traceroute IP address using multiple servers in different locations. In this article, we are sharing our study of IP address allocation and usage by continents over the past 10 years.Email Tracer - This is a free service to trace the email path from sender's location to recepient's mail server using IP addresses in the email header.The programming languages supported are PHP, ASP, ASP.NET, JSP, Perl and. Redirect Visitors by Country - Do you want to redirect visitors by country? Select the countries you want to redirect and the URLs of destination.htaccess, iptables (CIDR), Netmask, Inverse Netmask, IIS web.config and Cisco ACL. Firewall List by Search Engine - Select the search engines you want to whitelist, output format and press the "Download" button.The output format supported are Apache. ![]() htaccess, Linux iptables, CIDR, Netmask, Inverse Netmask, IIS web.config and Cisco ACL.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |