I have a page named index.jsp. I need to put restriction that no one can access this page using WiFi, users who are using mobile data only can access my page. Any help will be appreciated
Asked
Active
Viewed 133 times
2 Answers
1
On the server, you just see some http-headers and the IP-Adress. The headers wont tell you anything about the connection, just what kind of browser is used.
If you find out the IP that mobile data users have (afaik each carrier uses only a limited numbers of ips for all they customers) you could check the IP against a list of well-known mobile-data-IPs. But if the carrier changes his IPs, you would lock out users.

hinneLinks
- 3,673
- 26
- 40
0
Two points to remember here.
You cannot know user's connection type from Server. So Java(Jsp) wont help here.
Can do from fronted only.
1) A big NO in old browsers. 2) Experimental support from html5 (works in few browsers)

Community
- 1
- 1

Suresh Atta
- 120,458
- 37
- 198
- 307
-
Hey Thanx for the comment , but I have already tried navigator.connection but its not working on dolphin,safari and uc browser. I need to apply access check on all the browsers. – Kunal Batra Aug 06 '15 at 10:15