如何防止用户更改网址 [英] How to prevent user from changing url

查看:72
本文介绍了如何防止用户更改网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

在我的Web应用程序中,如果试用期已过,那么我将显示一个文本消息页,如TrialExpire.aspx

我想通过在浏览器中键入/更改来阻止用户访问其他页面的URL.

我该怎么做.

请分享您的想法

-
YRishi

Dear All,

In my web application, if trial period has expired then I am showing one text msg page like TrialExpire.aspx

I want to stop the user''s to access my other pages url''s by typing/changing in browser.

How can i do this.

Please share your idea''s

-
YRishi

推荐答案

即使是试用版,也必须强制每个用户创建一个帐户,然后登录才能访问您的站点.然后,您可以分配一个试用用户"角色,并使该帐户在试用期之后过期.由于该帐户已过期,因此他们无法登录,并且您的网站受到保护.如果他们购买"访问权限,则可以将其转移到新角色.
Even though it''s a trial, you have to force each user to create an account, and then login to access your site. You can then assign a role of "trial user", and have the account expire after the trial period. Since the account is expired, they can''t log in, and your site is protected. If they "buy" access, you can move them into a new role.


这篇关于如何防止用户更改网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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