Why does the deny ip set in nginx not take effect?
漂亮男人
漂亮男人 2017-05-16 17:25:45
0
1
1951

I made sure I loaded the deny.ip file. I tried to ban my own IP, but I can still access the web server. Please solve it

There is only one line written in my deny.ip: deny IP address;

漂亮男人
漂亮男人

reply all (1)
Peter_Zhu

The best configuration is posted for analysis

allow deny is in order, if you

allow 192.168.1.0/24 # ... deny 192.168.1.5

192.168.1.5is accessible

There is another possible situation. If your server is local, assume the IP is 192.168.1.5
Then you

deny 192.168.1.5

does not affect access via127.0.0.1These are two different network interfaces and vice versa

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!