A
A
akula222017-11-06 22:50:38
PHP
akula22, 2017-11-06 22:50:38

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

4 answer(s)
G
gents, 2017-11-07
@gents

What web server are you using?

K
Kirill Nesmeyanov, 2017-11-07
@SerafimArts

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.

A
akula22, 2017-11-07
@akula22

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

Y
Yuri, 2017-11-07
@LazyDev

The "h" parameter is a hash, most likely consisting of GET parameters (ip, s, e, h) and some key.
Probably, the hash is checked on the server for validity, so just by changing the ip parameter you will not be able to generate valid links to files.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question