IPTABLES and GEOIP: Show Custom Webpage to Blocked Visitors

Because of legal protection, as a first stage of launching my project I will focus on couple of countries only. The number of supported countries will grow.

I know, it is possible to block or allow whole countries through iptables and geoip. However, on top of this function, I would need to inform the blocked visitor, that the service is not yet supported in his country.

Is there a way, how to redirect a blocked user to a custom webpage, which would inform the visitor?

I use:

  • Ubuntu 14.04 TLS
  • PHP, HTML5, MySQL, …

Thank you for your advice. Kind regards,


Source : Link , Question Author : Bunkai.Satori , Answer Author : Community

Leave a Comment