Is it possible to make a webpage accessible in one browser only, for example Google Chrome? How to do it?
Asked
Active
Viewed 1,118 times
1
-
eh, i guess. you can spoof user agents tho – Halter Jan 03 '17 at 14:12
-
Why do you want to block a specific browser? That goes against the principles of the open internet. – GordonM Jan 03 '17 at 14:54
-
Possible duplicate of [Prevent users from being able to access a webpage via web browser?](http://stackoverflow.com/questions/2661655/prevent-users-from-being-able-to-access-a-webpage-via-web-browser) – code11 Jan 03 '17 at 16:18
1 Answers
4
as the web goes this is something that is highly discouraged. If you're relying on specific features to be available on the specific browser you should leverage on feature detection techniques, instead of browser sniffing techniques which are unreliable and flaky (browsers and crawlers can spoof that).
If you are really up for that, you can read the HTTP_USER_AGENT
string, and other techniques as suggested in this question: reliable user browser detection with php