Geo IP based redirection in Apache 2.4 with a dispatcher | Community
Skip to main content
sandeepv3925327
January 3, 2018

Geo IP based redirection in Apache 2.4 with a dispatcher

  • January 3, 2018
  • 2 replies
  • 8269 views

Hello,

We have a requirement to block users from certain countries  from accessing certain pages,please help us if anyone have implemented this solution already with AEM and dispatcher with Apache. We have already tried having an .htaccess with all possible IP for a country but is not a feasible one since we have to update those country IP list frequently also tried MaxDB but failing at the step of including MaxDB module at Apache.

Please let us know if any alternatives or detailed step available to acheive above mentioned requirement, thanks for your help in advance.

Happy New  Year 2018

Thanks

SV

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

sandeepv3925327
January 3, 2018

Hi edubey,

Thanks for the suggestion,we tried executing the commands but unfortunately mod_geoip package is not present in repository.

# sudo yum install GeoIP GeoIP-devel zlib-devel mod_geoip

Loaded plugins: amazon-id, rhui-lb, search-disabled-repos

cloudpassage                                                                                                           |  951 B  00:00:00

rhui-REGION-client-config-server-7                                                                                     | 2.9 kB  00:00:00

rhui-REGION-rhel-server-releases                                                                                       | 3.5 kB  00:00:00

rhui-REGION-rhel-server-rh-common                                                                                      | 3.8 kB  00:00:00

No package GeoIP-devel available.

No package mod_geoip available.

Resolving Dependencies

Thanks

SV

edubey
Level 10
January 3, 2018

I am not sure what could be causing installation issue via yum but give it a try to download the package and install it manually from

https://github.com/maxmind/geoip-api-mod_geoip2/releases

joerghoh
Adobe Employee
Adobe Employee
January 21, 2019

Just to have it mentioned here: This question is not specific to AEM or AEM dispatcher, but rather a generic question which relates of Apache httpd.