Redirection to mobile domain in the wild #18
Replies: 3 comments
-
Below is a curl request to Facebook that uses the -A flag to make the server think the request is coming from a mobile device and also follows any redirects. The first response is a 302 redirect to m.facebook.com (mobile version).
Below is much the same, but for youtube.com. It also 302 redirects to the mobile version.
A request to twitch.tv also redirects to a mobile url.
|
Beta Was this translation helpful? Give feedback.
-
Hi Professor, I have made a curl request to IMDB.com, snapdeal.com, alibaba.com where the server thinks the request is generated from a mobile device and redirect it to mobile site. $ curl -IL -A "Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148" https://www.imdb.com/ | grep -iE "^(http|location|Vary)" $ curl -IL -A "Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148" https://www.snapdeal.com/ | grep -iE "^(http|location|Vary)" % Total % Received % Xferd Average Speed Time Time Time Current $ curl -IL -A "Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148" https://www.alibaba.com/ | grep -iE "^(http|location|Vary)" |
Beta Was this translation helpful? Give feedback.
-
Hello Professor, Below are curl commands for redirection to mobile version. Response 302 redirects to the mobile version in all three examples(www.shein.com, www.aliexpress.com, www.timesofindia.com) HTTP/2 200 ' ' ' ' HTTP/2 302 HTTP/2 200 ' ' ' ' ' ' ' ' HTTP/2 301 HTTP/2 302 HTTP/2 200 ' ' ' ' |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Find up to three different "in the wild" redirection examples of the type
example.com
-->m.example.com
using any mobile user-agent.Beta Was this translation helpful? Give feedback.
All reactions