How to allow specific IP access in Nginx?

Let’s learn how to allow specific IP access in Nginx. The most accurate or helpful solution is served by Server Fault.

There are ten answers to this question.

Best solution

How to allow specific IP's to a URL (not directory!) in Nginx

I'm trying to deny access to a specific URL on our site running on Nginx but allow it from specific IP's, I've been trying to fiddle around using Location but it seems that's just trying to find a proper directory and not the URL. This is what I came up with, but just gives back a 404. location /specificurl { root /var/www/site1.com/current; allow 123.123.123.123; deny all; }

Answer:

I managed to solve it myself, and this is how: set $deny_access off; if ($remote_addr !~ (123.123.1...

Read more

Lars at Server Fault Mark as irrelevant Undo

Other solutions

How do I get a Linksys WRT60N Router to allow access to my IP Camera and Storage option?

I just bought a Linksys WRT610N router to replace my old WRT54GS. The router works well enough, so far. My internet connections seem faster. But try as I may, I cannot get this router to allow remote access to my IP camera, nor can I get the router to...

Answer:

Yes, first of all do you know what ports does your camera uses, I mean TCP or UDP port #. Unless there...

Read more

Rod at Yahoo! Answers Mark as irrelevant Undo

I have a ADSL modem with static ip configured. Nat is configured on the modem to allow access to http service.?

i have a ADSL modem with static ip configured. Nat is configured on the modem to allow access to http service. I need to access the site from the LAN using its public ip. The site does not open if the lan ip gateway modem's lan ip but Site is opening...

Answer:

Sounds like it should work. One problem that could lead to this is if the static IP on the server is...

Read more

ramesh_v... at Yahoo! Answers Mark as irrelevant Undo

IP address alter ego

Hello all. Perhaps someone more clever/knowledgable than myself can help out with an access problem. My computers at work allow me to use several databases that allow access based on the range of IP addresses used by my company. Recently, I've begun...

Answer:

Hi there pafalafa! Considering your situation, your best approach would be to get a piece of software...

Read more

pafalafa-ga at Google Answers Mark as irrelevant Undo

How do I allow a mobile IP address in Apache's allow directive?

In my development and stage server I only allow some IP address to access the website using the deny all, allow someip directives I my virtual host configuration. When my IP changes I use capistrano to automatically detect my new IP and connect to the...

Answer:

Unfortunately this can't be done for mobile, because the mobile network operator uses only a few IPs...

Read more

Miguel Paraz at Quora Mark as irrelevant Undo

Firewall/Ip blocking HELP?

I use Cain and able to route my WIFI to my laptop to my xbox from this i can gain the ip's im playing with online. what i need to know is there a firewall that will allow me to add safe ip's e.g. my friends and then to block all other incoming ip connections...

Answer:

Try Comodo Firewall http://personalfirewall.comodo.com/ its a good one. i am using it for last 5 years...

Read more

Ryan at Yahoo! Answers Mark as irrelevant Undo

How can i find out other people's IP address?

OK it sounds more suspect than it is. I guess most people give away their IP address whenever they go onto a website. But that suggests that an IP address doesn't give enough access to your computer to allow anybody to do anything illegal otherwise you...

Answer:

your pc only has an IP address if it connects directly to the internet via a modem If you connect via...

Read more

Paul at Yahoo! Answers Mark as irrelevant Undo

Changing ip address and how many ways can you change it?

Any way lets say a game blocked your ip address would restarting your modem change your ip address and allow you to access the game or will the game still block you because your still in the same range of your original ip also can a game block you through...

Answer:

Follow excellent tutorial below that may help you to change IP address: http://www.ipaddresslocation...

Read more

Esam Shadeed at Yahoo! Answers Mark as irrelevant Undo

Cannot get IP address from router's wireless signal?

I am trying to access the internet wirelessly on my new laptop from the family computer's wireless router. Despite the fact that the laptop can access it perfectly fine, and I apparently typed in the correct password for the wireless (I purposely typed...

Answer:

Connect to the router with one of the computers that works. (Look in the documentation for the router...

Read more

Turner at Yahoo! Answers Mark as irrelevant Undo

Why does Apache2 serve a subdomain when given an IP?

I have a domain hosted on a VPS running CentOS5. Whenever I enter http://my-vps-ip in my browser, I get redirected to http://subdomain.mysite.com. My limited Google-fu is no match for this particular problem, so I'm hoping the folks at AskMeFi can tell...

Answer:

If you have a name-based virtualhost listening on all IPs, as you do with <virtualhost *:80>,...

Read more

your mildly obsessive average geek at Ask.Metafilter.Com Mark as irrelevant Undo

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.