Answer the question
In order to leave comments, you need to log in
How to give access to the site only on the local network?
Actually the whole question is in the title, but it needs to be supplemented. Is it possible to make it so that access to the site is only from the local network, but data could be sent from the site.
Let's say there is a local database for "secret" and not very drawings. This database can only be viewed in the office itself, and access from outside should be closed, but also not very secret drawings must be sent (CURL) to an external server for public access. wamp server.
Answer the question
In order to leave comments, you need to log in
.htacces
Order deny,allow
deny from all
# Space-separated list of IPs from which access is allowed or subnet 192.168.0.*
Allow from 194.111.70.48 194.78.47.128
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question