Answer the question
In order to leave comments, you need to log in
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
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');
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question