Redirect mobile site. Is it unnecessary?

Started by Ronny, Aug 19, 2022, 02:54 AM

Previous topic - Next topic

RonnyTopic starter

Can you give me a hint, gentlemen? I've been redirected to the mobile version of the site. I came across a list of user agents on the internet that includes two-letter user agents such as xx, vx, pt, pg, and kg. I'm interested in understanding how this works.

Do I understand correctly that any word in the user agent with two consecutive letters will trigger a redirect to the mobile version of the site? Is nothing unnecessary going to redirect?

I've tested the site on various desktop browsers, and it seems to be functioning correctly without any redirects.

P.S. While I understand that adaptive design is recommended for 2022, my question pertains to a different issue.
  •  


_AnnA_

I also use this library in mine.
How to connect the library, quite detailed on overcoder and haizdesign.
No complaints, remarks and stuff like that, I recommend it. :)
  •  

prctshplc

Mobile redirects operate by having a webmaster insert code onto their website that triggers only when accessed from a mobile device. This code redirects users to another site that contains malware, all in an effort to generate revenue for the webmaster.

Once redirected, the user is presented with an offer to install a program such as an updated version of Opera Mini mobile browser. However, downloading this program requires sending an SMS text message that can cost tens of rubles, even though the browser is actually available for free. If the user pays and installs the "updated" program, automatic SMS messages will continue to be sent without the owner's consent.

Depending on the browser used to access the original website, users may be prompted to download files with different extensions, such as an apk file for Android devices or a jar file for the J2ME platform. Additionally, some sites may redirect users of Apple products, such as iPhones, iPods, and iPads, to the installation page of an expensive ipa application under the guise of requiring it to view the site. In reality, any browser can be used to view the site, which doesn't actually contain any useful information.
  •