htaccess access to file by ip range

前端 未结 7 2139
南笙
南笙 2020-12-05 02:03

How to allow access to file only to users with ip which are in a range of ip addresses?

For example file admin.php. and range from 0.0.0.0 to 1.2.3.4.

I need

7条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-05 02:57

    If you are using WordPress, then the Best and Simplest method is to install the plugin - LionScripts : WordPress IP Blocker from their website http://www.lionscripts.com/ip-address-blocker

    Their Professional version has much more features like country blocking and IP range blocking, bulk csv uploading etc.

提交回复
热议问题