F
F
froosty2015-06-28 21:05:30
JavaScript
froosty, 2015-06-28 21:05:30

How to make a redirect with the required UserAgent using Javascript?

Good day. There was such a task. When the user goes to the page, I need to change his user agent and redirect to a specific page so that exactly the user agent that I specified is visible on this page. Is it possible to do this with Javascript? I have doubts about the fact that this is even possible, but maybe someone will tell you for sure =)
Well, if it is not possible, then maybe someone will tell you by means of which this can be done. Thanks in advance for your reply.
PS Here on this site (do not take it for advertising) you can do something similar. You can write your user agent and the address of the page to which you need to go with this user agent.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Taratin, 2015-06-28
@froosty

No way. Proxy through your server.

X
xmoonlight, 2015-06-28
@xmoonlight

It ?!

S
scapp, 2015-06-28
@scapp

navigator.__defineGetter__('userAgent', function(){
    return 'МОЙ СУПЕР БРАУЗЕР';
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question