您目前尚未登陆,请选择【登陆】或【注册
首页->全站代码->DotNetNuke04.08.03免安装版项目源码>>Website/Config/DotNetNuke.config>>代码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:DotNetNuke04.08.03免安装版项目源码


当前文件路径:DNN/Website/Config/DotNetNuke.config 文件类型
普通视图
		            
1<?xml version="1.0"?> 2<configuration> 3 <!-- The following elements are intended for future consolidation --> 4 <regexfilters /> 5 <compression /> 6 <RewriterRules /> 7 <!-- 8 The blockrequests element contains one or more rules that are used for blocking access to the site. This filter only works 9 on content that is actually processed by ASP.Net. 10 --> 11 <blockrequests> 12 <!-- 13 Each rule element defines a simple matching expression and the action to take if a match is found. You can define as many rules 14 as needed. This provides a flexible "or" operation where any one rule can cause the request to be blocked. 15 Rule Attributes: 16 ~~~~~~~~~~~~~~~~ 17 servervar: This is the name of a Server variable from the Request.ServerVar hash table. See: http://www.w3schools.com/asp/coll_servervariables.asp 18 value : Defines the value of the servervar that triggers the rule. For a regex rule, the value should be a regular expression that used as a matching expression. 19 If this is not a regex operation, then value can be a semicolon delimited list of values. For example it could include a list of IP addresses that should 20 be blocked. 21 operator : Defines the operation that determines whether an actual match exists. Valid values: Regex, Equal, NotEqual 22 >> Regex : Uses the regular expression specified in the value attribute to determine a match. 23 >> Equal : Performs a search of the value list to determine if the value of the specified server variable is in the value list. 24 >> NotEqual : Performs a search of the value list to determine if the value of the specified server variable does not exist in the value list. 25 action : Defines the action to take if a match occurs. Valid values: NotFound, Redirect, PermanentRedirect. 26 >> NotFound : Returns a 404 status code and stops all further response processing. 27 >> Redirect : Performs a standard redirect to the url specified in the location attribute. 28 >> PermanentRedirect : Performs a permanent redirect (status code 301) to the url specified in the location attribute. 29 location : The url where the request will be redirected. This can be left blank for the 'NotFound' action. 30 <rule servervar="URL" values="(?i-msnx:.*default\.aspx.*)" operator="Regex" action="Redirect" location="http://www.dotnetnuke.com" /> 31 <rule servervar="HTTPS" values="on" operator="NotEqual" action="NotFound" location="" /> 32 <rule servervar="REMOTE_ADDR" values="10.10.0.100;192.168.0.100" operator="Equal" action="PermanentRedirect" location="http://www.dotnetnuke.com" /> 33 --> 34 </blockrequests> 35</configuration> 36
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:DotNetNuke04.08.03免安装版项目源码

- CnForums2.02中文版

- Ajax+Access简单留言本

- Asp.net煤炭销售管理系统源码

- ShangduCmsNT1.5.0(集成SP1..

- 醉心阁小说网项目源码

- 建筑监理门户网站全站源码

- Asp.net简单试题库管理系统源码

- 邓西网站在线帮助系统V2.0(A..

51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号