M
M
mrWan2018-08-13 13:16:21
Nginx
mrWan, 2018-08-13 13:16:21

How to make access to localhost only from the computer on which the server is installed (apache, nginx)?

I have a Wi-Fi network, knowing the ip of the computer where the server is running, I can enter this ip and get everything that is on this server. How it is possible to forbid access from the outside?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2018-08-13
@alexr64

listen 127.0.0.1

C
CityCat4, 2018-08-13
@CityCat4

You can only connect to localhost from the computer where the server is installed. And nothing else.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question