Everything worked on LAN normally, the word is entered, the iframe works with yandex and everything is fine. But it was enough to throw on the hosting, as in less than a second, the redirect to Yandex itself works. Why it happens? (checked on both paid and free hosting, redirects everywhere!)

An example is here .

How to avoid it? (I noticed that Yandex redirects, as it were, Yandex itself, tried it with another site, it's normal there.)

    1 answer 1

    Does not like Yandex to run in the frame, well, does not like. If you want to find something using his search, there are two ways:
    1) Install the built-in Yandex search.
    2) Make a request to your server script, which would pull data from Yandex. Say curl'om.

    • Ok, I have a script, did a search with a choice of Region to search for a phrase. And about pulling the data curl'om, it somehow did not even once. Thanks for the hint on the solution. - I_CaR