Answer the question
In order to leave comments, you need to log in
The site does not open Curl, but opens in the browser, what is the reason?
Why, when I open one site with Curl, I get the page of my modem ), some kind of protection.
But if I usually open the same URL in the browser, everything works fine, how can I get around this? How does this site differentiate us? tried both file_get_content and either type yii2-http-client
Answer the question
In order to leave comments, you need to log in
Judging by the comments:
If the server is binned, for example, to 0.0.0.0, then when you open the site from the local area using the external IP address, the router page will open - this is normal. When opening 127.0.0.1, it will work fine, just like when accessed from the outside via an external IP address.
Things have moved on, everything works on the local server, here is the link
.mp4?ip=MY_IP/8&rs=57&ri=1600&s=1510068835&e=1510076035&h=93bea55876f8d86a20f50b1f49189fdb I upload it
to the hosting and the link does not work, it is like this
.mp4?ip/MY&rs=_IP on the hosting =57&ri=1600&s=1510068866&e=1510076066&h=c5c15feefedde01723b5fb69eea9e53f
Ip shnik I substitute my $_SERVER['REMOTE_ADDR'] through preg_replace the
snag is all in the last three parameters in the link, I don’t understand how the damn protection works
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question