E
E
Evgeny Efimchenko2021-02-15 00:00:12
Android
Evgeny Efimchenko, 2021-02-15 00:00:12

Why does the Instagram app display the site incorrectly on android?

Good day to all.
Website https://onesummer.ru When you click on the link in the Instagram header https://www.instagram.com/one_summer_store/ On Android devices, this link taplink.cc/one_summer_store opens taplink. Which is generated by the insta web application itself. And if you start following the links to the site, then some kind of internal Instagram browser opens on which there is simply no site header! Taplink opens right there. How is it possible to bypass this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Efimchenko, 2021-02-16
@clean_code

And here is a simple solution to a complex question in PHP:

$userAgent = $_SERVER['HTTP_USER_AGENT'];
    if (strpos($userAgent, 'Instagram')) {
        header('Content-type: application/pdf');
        header('Content-Disposition: inline; filename= blablabla');
        header('Content-Transfer-Encoding: binary');
        header('Accept-Ranges: bytes');
        @readfile('index.php');
    }

Source

P
Puma Thailand, 2021-02-15
@opium

Insta uses Android's built-in browser

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question