htaccess IP restricted website and remote datasource
This is an open discussion with 2 replies, filed under Troubleshooting.
Search
Solved finding the IP of the server with echo $_SERVER['SERVER_ADDR'];
^^
Ah, thanks for posting the solution!
Create an account or sign in to comment.
I am working on a website and restricted the access until official launch, using htaccess to allow few IPs, like that:
The awesome symphony played by the website is using few (but vital) remote datasources (to create and play some json stuff from frontend pages). But since I restricted the access, the server doesn't seems to access the remote datasources even with 127.0.0.1 or ::1
Any idea of the config I should add in this .htaccess to allow symphony to access himself?