jokerfool Posted April 23, 2012 Share Posted April 23, 2012 Is there a way so when someone loads your website that it forces them to load it in a different browser? Quote Link to comment https://forums.phpfreaks.com/topic/261467-force-to-a-different-browser/ Share on other sites More sharing options...
TheMeq Posted April 23, 2012 Share Posted April 23, 2012 You cannot force the user to do anything. The web isn't designed this way. Instead of forcing them to use another browser, make your website browser independant. Quote Link to comment https://forums.phpfreaks.com/topic/261467-force-to-a-different-browser/#findComment-1339782 Share on other sites More sharing options...
MMDE Posted April 23, 2012 Share Posted April 23, 2012 Why would you like to force the user to a different browser? Quote Link to comment https://forums.phpfreaks.com/topic/261467-force-to-a-different-browser/#findComment-1339785 Share on other sites More sharing options...
BMR777 Posted April 23, 2012 Share Posted April 23, 2012 You can't force the browser to switch, but you can refuse to load your page for certain browsers. I can imagine maybe the OP wants to block IE6 or something. You'll have to get the user agent of the browser and then check that against a list and then you can do something, like show a page telling the user to use a different browser. The user agent can be changed by the user in some cases though, so it's not a fool-proof way to prevent someone from viewing your page. Quote Link to comment https://forums.phpfreaks.com/topic/261467-force-to-a-different-browser/#findComment-1339999 Share on other sites More sharing options...
MadTechie Posted April 24, 2012 Share Posted April 24, 2012 You cannot force the user to do anything. My P90 Gun Disagrees with that statement In any case, you can detect what the browser says its name is, but that's not 100% proof, but would be okay for a basic validation. What are you trying to achieve ? Quote Link to comment https://forums.phpfreaks.com/topic/261467-force-to-a-different-browser/#findComment-1340035 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.