tokkonopapa / WordPress-IP-Geo-Block

A WordPress plugin that will blocks any comment, pingback and trackback spams posted from outside your nation. And it will also protect against malicious access to the login form, admin area and XML-RPC from undesired countries.
http://www.ipgeoblock.com/
29 stars 14 forks source link

Feature: Support Nginx rewrite rules #15

Closed ddur closed 6 years ago

ddur commented 7 years ago

Nginx is second most important web server. https://w3techs.com/technologies/market/web_server IMHO it deserves rewrite rules support.

tokkonopapa commented 7 years ago

Actually, this plugin almost takes care of nginx in https://github.com/tokkonopapa/WordPress-IP-Geo-Block/blob/master/ip-geo-block/admin/includes/class-admin-rewrite.php for example. But I don't have built nginx server environment in my PC yet. I hope it may be done in some future.

Thanks.

tokkonopapa commented 6 years ago

Implemented in 3.0.6 by .user.ini as an alternative of .htaccess and fixed a bug in 3.0.7.

ddur commented 6 years ago

Cool, thanks. That is much better than modifying NGinx rules, which requires restarting NGinx server.