如何将网站限制在特定的大学 [英] How to restrict web site to specific college

查看:98
本文介绍了如何将网站限制在特定的大学的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello,

I created one website and now want to launch it. but I want to make accessible to my college only. website where user login. I search on some option are there like domain name contraint. but there is no emailid for student with college domain name. then how I can make it. please help.

options I have: 
1] get IP address, but i want it is also accessible to passout student.
2] get college database and check every user tying to resister. but not found as well solution.





我有什么尝试过:



您好,



我创建了一个网站,现在想要启动它。但我想让我的大学无法进入。用户登录的网站。我搜索一些选项是否有域名约束。但是对于拥有大学域名的学生,没有emailid。然后我怎么能做到。请帮忙。



选项我有:

1]获取IP地址,但我希望它也可以为普通学生提供。

2]获取大学数据库并检查每个用户是否都要绑定。但是没有找到解决方案。



What I have tried:

Hello,

I created one website and now want to launch it. but I want to make accessible to my college only. website where user login. I search on some option are there like domain name contraint. but there is no emailid for student with college domain name. then how I can make it. please help.

options I have:
1] get IP address, but i want it is also accessible to passout student.
2] get college database and check every user tying to resister. but not found as well solution.

推荐答案

如果你想限制可访问性,你有两个选择,如你所说:客户端IP地址范围和登录。

IP不起作用:获取客户端IP地址是微不足道的,但是如果你必须允许学生从他们的家庭位置进入,那么你就无法使用它:使用基于IP的地理定位 - 以及为什么它几乎没用。 [ ^ ]。如果你可以将它限制在大学IP地址,那就太微不足道了。否则,这是浪费时间。

要限制登录,您需要访问大学数据库并确保您的用户当前仍在使用它,或者至少在开始时使用它期限。

没有其他方法可行。
If you want to limit accessibility, you have two options, as you stated: client IP address range and login.
IP won't work: It's trivial to get the client IP address, but if you must allow students in from their home locations then you can't use it: Using IP based Geolocation - and why it's pretty much useless.[^]. If you could restrict it to just "college IP" addresses, it's trivial. Otherwise, it's a waste of time.
To restrict logins, you would need to access the college DB and ensure that your users are still currently on it, or at the very least were on it at the beginning of term.
No other way will work.


这篇关于如何将网站限制在特定的大学的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆