Welcome to JiKe DevOps Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
215 views
in Technique[技术] by (71.8m points)

How to allow for specific IPs to access rss feed urls in nginx?

I want to restrict the access to rss feed urls like

 https://example.com/feed/20 

and allow the access to specific IPs. I have done the following, but it didn't work.

        location ^~ /feed/ {
           allow 192.168.1.4;
           allow 192.168.1.5;
           deny all;
        }

Can any one has a best way to apply this?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

Please log in or register to answer this question.

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to JiKe DevOps Community for programmer and developer-Open, Learning and Share

755k questions

754k answers

5 comments

53.3k users

...