الشبكة/HTTP
User-Agent Parser
تحليل سلسلة User-Agent إلى المتصفح والمحرك ونظام التشغيل ونوع الجهاز.
The User-Agent string a browser sends with every request looks like a chaotic mix of names and versions, largely because of browsers' historical habit of impersonating each other (nearly every modern browser's string still contains "Mozilla/5.0"). This tool breaks it down into browser, engine, OS, and device type.
How to use it
- Paste a User-Agent string (from your own dev tools console or from server logs) and it's parsed instantly.
- The result shows the browser name and version, the rendering engine, the operating system, and the device type (desktop, mobile, tablet, bot).
- Handy for recognizing bot and crawler strings (Googlebot, Bingbot, etc.), which also send a User-Agent.
Common uses
- Debugging a bug that only shows up in a specific browser or OS — quickly figuring out what the user was actually on from a log entry.
- Analyzing server logs for the share of mobile traffic or outdated browsers among visitors.
- Checking whether a request genuinely came from a legitimate search bot, rather than someone spoofing its User-Agent.
Things to keep in mind
A User-Agent is entirely controlled by the client and easy to spoof — don't rely on it for security decisions.
Under the User-Agent Reduction effort, modern browsers increasingly freeze or simplify OS and device details for privacy — detection accuracy is gradually declining.
مقالة عن هذه الأداة: User-Agent: لماذا هذه السلسلة فوضوية إلى هذا الحد
الأسئلة الشائعة
لماذا تذكر سلاسل User-Agent كثيرًا كلمة "Mozilla" حتى في Chrome أو Safari؟
هذا أثر تاريخي — استمرت المتصفحات في إضافة "Mozilla/5.0" إلى سلاسل User-Agent الخاصة بها للتوافق مع فحوصات الخوادم القديمة المكتوبة لمتصفح Netscape Navigator المبكر، ولم يختفِ هذا العرف أبدًا.
ما مدى موثوقية تحليل User-Agent لاكتشاف المتصفح ونظام التشغيل الفعليين؟
موثوق بشكل معقول في الحالات الشائعة، لكن يمكن انتحال سلاسل User-Agent، وتُجمّد بعض المتصفحات الآن أجزاء من السلسلة أو تبسّطها لأغراض الخصوصية، لذا لا يُضمن أن يكون الكشف دقيقًا.
هل تُرسَل سلسلة User-Agent التي ألصقها هنا إلى أي مكان؟
لا. يتم التحليل بالكامل في متصفحك — لا شيء يُرفَع إلى خادم.
ما هي User-Agent Client Hints؟
بديل حديث لسلسلة User-Agent الواحدة — مجموعة من الترويسات المنفصلة (Sec-CH-UA، Sec-CH-UA-Platform، إلخ) يجب على الخادم طلبها صراحةً ويحصل عليها بصيغة منظّمة، بدلًا من تحليل سلسلة واحدة مزدحمة.
لماذا تُخفي بعض المتصفحات إصدار نظام التشغيل الدقيق أو طراز الجهاز في User-Agent؟
هذا جزء من مبادرة "User-Agent Reduction" لحماية الخصوصية — يمكن استخدام تفاصيل إصدار نظام التشغيل أو طراز الجهاز للتعرّف على المستخدم بشكل فريد (fingerprinting)، لذا تعمل المتصفحات تدريجيًا على تبسيط أو "تجميد" هذه الأجزاء من السلسلة.