HttpModules帮你看守大门
这是很久以前搞的一个东西了,今天翻东西的时候看到了,发上来和大家分享一下:
这里就不说HttpModules是什么了,大家都知道,在网络上有很多关于用他重定向URL的功能,这里我让他成为一个门神,把守着我们的网站.
下面是一个配置文件的样子
<?xml version="1.0" encoding="utf-8" ?>
<root>
<url file="news_txt.aspx">
<parameter name="pn" type="int" max="*" min="1" />
<parameter name="next" type="int" max="*" min="1" />
<parameter name="newsid" type="int" max="*" min="0" />
</url>
</root>
上面就是全部代码,编译成DLL后放在你的BIN目录就好了,他可以帮你过滤URL的,看是否有非法信息,这里我只作到了对GET数据的检测,没有做POST数据的检测,大家也可以实现一下
这里就不说HttpModules是什么了,大家都知道,在网络上有很多关于用他重定向URL的功能,这里我让他成为一个门神,把守着我们的网站.
1
using System;
2
using System.Web;
3
using System.Xml;
4![](/Images/OutliningIndicators/None.gif)
5![](/Images/OutliningIndicators/None.gif)
6
namespace MyHttpModules
7
{
8
/// <summary>
9
/// CheckUrl 的摘要说明。
10
/// </summary>
11
public class CheckUrlModules : System.Web.IHttpModule
12
{
13
public CheckUrlModules()
14
{
15
16
}
17
IHttpModule 成员
30![](/Images/OutliningIndicators/InBlock.gif)
31
private void context_BeginRequest(object sender, EventArgs e)
32
{
33
HttpApplication application = (HttpApplication)sender;
34
HttpContext context = application.Context;
35
string xmlpath = System.Configuration.ConfigurationSettings.AppSettings["xmlpath"];
36
if( xmlpath!=null )
37
{
38
CheckUrl xmlconfig = new CheckUrl(context.Server.MapPath(xmlpath));
39
string url = context.Request.Url.ToString();
40
//context.Response.Write(url);
41
if( xmlconfig.IsFileUrl(url) )
42
{
43
if( xmlconfig.IsParameter(url) )
44
{
45
if( !xmlconfig.CheckParameter(url) )
46
{
47
context.Response.Redirect(System.Configuration.ConfigurationSettings.AppSettings["error"],true);
48
}
49
}
50
}
51
}
52
}
53
}
54
}
上面是一个HttpModule的实现用到了CheckUrl,下面给出CheckUrl
![](/Images/OutliningIndicators/None.gif)
2
![](/Images/OutliningIndicators/None.gif)
3
![](/Images/OutliningIndicators/None.gif)
4
![](/Images/OutliningIndicators/None.gif)
5
![](/Images/OutliningIndicators/None.gif)
6
![](/Images/OutliningIndicators/None.gif)
7
![](/Images/OutliningIndicators/ExpandedBlockStart.gif)
8
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
9
![](/Images/OutliningIndicators/InBlock.gif)
10
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
11
![](/Images/OutliningIndicators/InBlock.gif)
12
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
13
![](/Images/OutliningIndicators/InBlock.gif)
14
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
15
![](/Images/OutliningIndicators/InBlock.gif)
16
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
17
![](/Images/OutliningIndicators/ContractedSubBlock.gif)
30
![](/Images/OutliningIndicators/InBlock.gif)
31
![](/Images/OutliningIndicators/InBlock.gif)
32
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
33
![](/Images/OutliningIndicators/InBlock.gif)
34
![](/Images/OutliningIndicators/InBlock.gif)
35
![](/Images/OutliningIndicators/InBlock.gif)
36
![](/Images/OutliningIndicators/InBlock.gif)
37
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
38
![](/Images/OutliningIndicators/InBlock.gif)
39
![](/Images/OutliningIndicators/InBlock.gif)
40
![](/Images/OutliningIndicators/InBlock.gif)
41
![](/Images/OutliningIndicators/InBlock.gif)
42
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
43
![](/Images/OutliningIndicators/InBlock.gif)
44
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
45
![](/Images/OutliningIndicators/InBlock.gif)
46
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
47
![](/Images/OutliningIndicators/InBlock.gif)
48
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
49
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
50
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
51
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
52
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
53
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
54
![](/Images/OutliningIndicators/ExpandedBlockEnd.gif)
1
using System;
2
using System.Xml;
3
using System.Text.RegularExpressions;
4![](/Images/OutliningIndicators/None.gif)
5
namespace MyHttpModules
6
{
7
/// <summary>
8
/// CheckUrl 的摘要说明。
9
/// </summary>
10
public class CheckUrl
11
{
12
private System.Xml.XmlDocument doc;
13
public CheckUrl(string xmlpath)
14
{
15
doc = new
16
XmlDocument();
17
doc.Load(xmlpath);
18
}
19![](/Images/OutliningIndicators/InBlock.gif)
20
/// <summary>
21
/// 检查部署文档中是否存在文件 true 存在,false 不存在
22
/// </summary>
23
/// <param name="url">url地址</param>
24
/// <returns>bool</returns>
25
public bool IsFileUrl(string url)
26
{
27
string filename = "";
28
if( url.IndexOf("?")==-1 )
29
{
30
int starindex = url.LastIndexOf("/");
31
int endindex = url.Length;
32
filename = url.Substring(starindex+1,endindex-starindex-1);
33
}
34
else
35
{
36
int starindex = url.LastIndexOf("/");
37
int endindex = url.LastIndexOf("?");
38
filename = url.Substring(starindex+1,endindex-starindex-1);
39
}
40
//XmlNode node = doc.SelectSingleNode("/root/url[@file=\""+filename+"\"]");
41
XmlNode node = doc.SelectSingleNode("/root/url[@file=\""+filename.ToLower()+"\"]");
42![](/Images/OutliningIndicators/InBlock.gif)
43
if( node==null )
44
return false;
45
else
46
return true;
47
}
48![](/Images/OutliningIndicators/InBlock.gif)
49
/// <summary>
50
/// 检查地址是否存在参数 true 存在,false 不存在
51
/// </summary>
52
/// <param name="url">url地址</param>
53
/// <returns>bool</returns>
54
public bool IsParameter(string url)
55
{
56
if( url.LastIndexOf("?")==-1 )
57
return false;
58
else
59
return true;
60
}
61![](/Images/OutliningIndicators/InBlock.gif)
62
private string[] Split(string str,char[] ch)
63
{
64
return str.Split(ch);
65
}
66![](/Images/OutliningIndicators/InBlock.gif)
67
/// <summary>
68
/// 检查参数的合理 true 所有参数符合要求,false 有参数不符合要求
69
/// </summary>
70
/// <param name="url">url地址</param>
71
/// <returns>bool</returns>
72
public bool CheckParameter(string url)
73
{
74
//求出请求文件的名字
75
string filename = "";
76
int starindex = 0;
77
int endindex = 0;
78
bool status = true;
79
if( url.IndexOf("?")==-1 )
80
{
81
starindex = url.LastIndexOf("/");
82
endindex = url.Length;
83
filename = url.Substring(starindex+1,endindex-starindex-1);
84
}
85
else
86
{
87
starindex = url.LastIndexOf("/");
88
endindex = url.LastIndexOf("?");
89
filename = url.Substring(starindex+1,endindex-starindex-1);
90
}
91
//end
92
93
//求出单个参数行
94
starindex = url.LastIndexOf("?");
95
endindex = url.Length;
96
char[] ch={'&'};
97
string param_string = url.Substring(starindex+1,endindex-starindex-1);
98
string[] param = param_string.Split(ch);
99
//end
100![](/Images/OutliningIndicators/InBlock.gif)
101
XmlNode node = doc.SelectSingleNode("/root/url[@file=\""+filename.ToLower()+"\"]"); //查找对应文件节点
102
if( node==null )
103
return true; //当配置文件中没有找到对应节点时不作任何处理
104
//XmlNodeList nodelist = node.SelectNodes("parameter"); //找出所有参数
105
foreach(string s in param)
106
{
107
Parameter pa = new Parameter(s); //分析字符串,得出参数名和参数值
108
string paramname = pa.ParamName; //参数名
109
string paramvalue = pa.ParamValue; //参数值
110
XmlNode paramnode = node.SelectSingleNode("parameter[@name=\""+paramname+"\"]");
111
//if( paramnode==null )
112
//{
113
//throw new System.ApplicationException(filename+"的"+paramvalue+"参数在配置文件中不存在");
114
//}
115
if( paramnode!=null )
116
{
117
try
118
{
119
string temp = paramnode.Attributes["type"].Value;
120
}
121
catch(System.NullReferenceException)
122
{
123
throw new System.ApplicationException(filename+"的"+paramname+"参数type属性不存在");
124
}
125
switch( paramnode.Attributes["type"].Value )
126
{
127
case "int": //对参数为int类型的检查处理
128
try
129
{
130
int tempvalue = Convert.ToInt32(paramvalue);
131
try
132
{
133
string temp = paramnode.Attributes["max"].Value;
134
}
135
catch(System.ApplicationException)
136
{
137
throw new System.ApplicationException(filename+"的"+paramname+"参数max属性不存在");
138
}
139
try
140
{
141
string temp = paramnode.Attributes["min"].Value;
142
}
143
catch(System.ApplicationException)
144
{
145
throw new System.ApplicationException(filename+"的"+paramname+"参数min属性不存在");
146
}
147
string maxvalue = paramnode.Attributes["max"].Value;
148
string minvalue = paramnode.Attributes["min"].Value;
149
if( minvalue=="*" && maxvalue!="*" )
150
{
151
try
152
{
153
int max = Convert.ToInt32(maxvalue);
154
if( tempvalue>max )
155
{
156
status = false;
157
return status;
158
}
159![](/Images/OutliningIndicators/InBlock.gif)
160
}
161
catch(System.FormatException)
162
{
163
throw new System.ApplicationException(filename+"的"+paramname+"参数属性max定义不能转换为int");
164
}
165
}
166
else if(minvalue!="*" && maxvalue=="*" )
167
{
168
try
169
{
170
int min = Convert.ToInt32(minvalue);
171
if( tempvalue<min )
172
{
173
status = false;
174
return status;
175
}
176
}
177
catch(System.FormatException)
178
{
179
throw new System.ApplicationException(filename+"的"+paramname+"参数属性min定义不能转换为int");
180
}
181
182
}
183
else if(minvalue!="*" && maxvalue!="*")
184
{
185
try
186
{
187
int temp = Convert.ToInt32(minvalue);
188
}
189
catch(System.FormatException)
190
{
191
throw new System.ApplicationException(filename+"的"+paramname+"参数min属性不能转换为int");
192
}
193
try
194
{
195
int temp = Convert.ToInt32(maxvalue);
196
}
197
catch(System.FormatException)
198
{
199
throw new System.ApplicationException(filename+"的"+paramname+"参数max属性不能转换为int");
200
}
201
int min = Convert.ToInt32(minvalue);
202
int max = Convert.ToInt32(maxvalue);
203
if( tempvalue<min || tempvalue>max )
204
{
205
status = false;
206
return status;
207
}
208
209
}
210
}
211
catch(System.FormatException)
212
{
213
status = false;
214
return status;
215
}
216
break;
217
case "string": //字符型参数的检查与处理
218
string tempvalue2 = paramvalue;
219
try //检查iscn属性是否存在,如果不存在抛出异常
220
{
221
if( paramnode.Attributes["iscn"].Value=="true" )
222
tempvalue2 = System.Web.HttpUtility.UrlDecode(tempvalue2);
223
}
224
catch(System.NullReferenceException)
225
{
226
throw new System.ApplicationException(filename+"的"+paramname+"参数iscn属性不存在");
227
}
228
string nochs;
229
try //检查nostr属性是否存在,如果不存在抛出异常
230
{
231
nochs = paramnode.Attributes["nostr"].Value;
232
}
233
catch(System.NullReferenceException)
234
{
235
throw new System.ApplicationException(filename+"的"+paramname+"参数nostr属性不存在");
236
}
237
if( nochs!="*" )
238
{
239
//当能数值中存在nostr定义的值时就返回假
240
foreach( char c in tempvalue2 )
241
{
242
foreach(char c2 in nochs)
243
{
244
if( c==c2 )
245
{
246
return false;
247
}
248
}
249
}
250
//end
251
}
252
string regexvalue;
253
try
254
{
255
regexvalue = paramnode.Attributes["regex"].Value;
256
}
257
catch(System.NullReferenceException)
258
{
259
throw new System.ApplicationException(filename+"的"+paramname+"参数regex属性不存在");
260
}
261
if( regexvalue!="*" )
262
{
263
Regex regex = new Regex(regexvalue);
264
if( !regex.IsMatch(tempvalue2) )
265
return false;
266
}
267
break;
268
}
269
}
270
}
271
return status;
272
}
273
}
274
275![](/Images/OutliningIndicators/InBlock.gif)
276
/// <summary>
277
/// 获取参数名和参数值
278
/// </summary>
279
public class Parameter
280
{
281
private string _paramname;
282
private string _paramvalue;
283
private string _param;
284
public Parameter(string param)
285
{
286
_param = param;
287
if (IsParam)
288
{
289
char[] ch = {'='};
290
string[] tmpparms = param.Split(ch);
291
if( tmpparms.Length>2 || tmpparms.Length==0 || tmpparms.Length==1 )
292
throw new System.ApplicationException("参数格式不正确");
293
if( tmpparms.Length==2 )
294
{
295
_paramname = tmpparms[0];
296
_paramvalue = tmpparms[1];
297
}
298
}
299
else
300
{
301
System.ApplicationException es = new ApplicationException("url参数格式不正确");
302
throw es;
303
}
304
305
}
306![](/Images/OutliningIndicators/InBlock.gif)
307
/// <summary>
308
/// 检查参数是否正确 true 表示参数格式正确,false 表示参数不正确
309
/// </summary>
310
private bool IsParam
311
{
312
get
313
{
314
if( _param.IndexOf("=")==-1 )
315
return false;
316
else
317
{
318
int starindex = _param.IndexOf("=");
319
int endindex = _param.LastIndexOf("=");
320
if( starindex==endindex )
321
return true;
322
else
323
return false;
324
}
325
}
326
}
327![](/Images/OutliningIndicators/InBlock.gif)
328
/// <summary>
329
/// 获取参数名
330
/// </summary>
331
public string ParamName
332
{
333
get
334
{ return _paramname;}
335
}
336![](/Images/OutliningIndicators/InBlock.gif)
337
/// <summary>
338
/// 获取参数值
339
/// </summary>
340
public string ParamValue
341
{
342
get
343
{ return _paramvalue; }
344
}
345
}
346
}
大家看注释就知道没个的作用了![](/Images/OutliningIndicators/None.gif)
2
![](/Images/OutliningIndicators/None.gif)
3
![](/Images/OutliningIndicators/None.gif)
4
![](/Images/OutliningIndicators/None.gif)
5
![](/Images/OutliningIndicators/None.gif)
6
![](/Images/OutliningIndicators/ExpandedBlockStart.gif)
7
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
8
![](/Images/OutliningIndicators/InBlock.gif)
9
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
10
![](/Images/OutliningIndicators/InBlock.gif)
11
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
12
![](/Images/OutliningIndicators/InBlock.gif)
13
![](/Images/OutliningIndicators/InBlock.gif)
14
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
15
![](/Images/OutliningIndicators/InBlock.gif)
16
![](/Images/OutliningIndicators/InBlock.gif)
17
![](/Images/OutliningIndicators/InBlock.gif)
18
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
19
![](/Images/OutliningIndicators/InBlock.gif)
20
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
21
![](/Images/OutliningIndicators/InBlock.gif)
22
![](/Images/OutliningIndicators/InBlock.gif)
23
![](/Images/OutliningIndicators/InBlock.gif)
24
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
25
![](/Images/OutliningIndicators/InBlock.gif)
26
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
27
![](/Images/OutliningIndicators/InBlock.gif)
28
![](/Images/OutliningIndicators/InBlock.gif)
29
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
30
![](/Images/OutliningIndicators/InBlock.gif)
31
![](/Images/OutliningIndicators/InBlock.gif)
32
![](/Images/OutliningIndicators/InBlock.gif)
33
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
34
![](/Images/OutliningIndicators/InBlock.gif)
35
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
36
![](/Images/OutliningIndicators/InBlock.gif)
37
![](/Images/OutliningIndicators/InBlock.gif)
38
![](/Images/OutliningIndicators/InBlock.gif)
39
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
40
![](/Images/OutliningIndicators/InBlock.gif)
41
![](/Images/OutliningIndicators/InBlock.gif)
42
![](/Images/OutliningIndicators/InBlock.gif)
43
![](/Images/OutliningIndicators/InBlock.gif)
44
![](/Images/OutliningIndicators/InBlock.gif)
45
![](/Images/OutliningIndicators/InBlock.gif)
46
![](/Images/OutliningIndicators/InBlock.gif)
47
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
48
![](/Images/OutliningIndicators/InBlock.gif)
49
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
50
![](/Images/OutliningIndicators/InBlock.gif)
51
![](/Images/OutliningIndicators/InBlock.gif)
52
![](/Images/OutliningIndicators/InBlock.gif)
53
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
54
![](/Images/OutliningIndicators/InBlock.gif)
55
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
56
![](/Images/OutliningIndicators/InBlock.gif)
57
![](/Images/OutliningIndicators/InBlock.gif)
58
![](/Images/OutliningIndicators/InBlock.gif)
59
![](/Images/OutliningIndicators/InBlock.gif)
60
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
61
![](/Images/OutliningIndicators/InBlock.gif)
62
![](/Images/OutliningIndicators/InBlock.gif)
63
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
64
![](/Images/OutliningIndicators/InBlock.gif)
65
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
66
![](/Images/OutliningIndicators/InBlock.gif)
67
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
68
![](/Images/OutliningIndicators/InBlock.gif)
69
![](/Images/OutliningIndicators/InBlock.gif)
70
![](/Images/OutliningIndicators/InBlock.gif)
71
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
72
![](/Images/OutliningIndicators/InBlock.gif)
73
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
74
![](/Images/OutliningIndicators/InBlock.gif)
75
![](/Images/OutliningIndicators/InBlock.gif)
76
![](/Images/OutliningIndicators/InBlock.gif)
77
![](/Images/OutliningIndicators/InBlock.gif)
78
![](/Images/OutliningIndicators/InBlock.gif)
79
![](/Images/OutliningIndicators/InBlock.gif)
80
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
81
![](/Images/OutliningIndicators/InBlock.gif)
82
![](/Images/OutliningIndicators/InBlock.gif)
83
![](/Images/OutliningIndicators/InBlock.gif)
84
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
85
![](/Images/OutliningIndicators/InBlock.gif)
86
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
87
![](/Images/OutliningIndicators/InBlock.gif)
88
![](/Images/OutliningIndicators/InBlock.gif)
89
![](/Images/OutliningIndicators/InBlock.gif)
90
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
91
![](/Images/OutliningIndicators/InBlock.gif)
92
![](/Images/OutliningIndicators/InBlock.gif)
93
![](/Images/OutliningIndicators/InBlock.gif)
94
![](/Images/OutliningIndicators/InBlock.gif)
95
![](/Images/OutliningIndicators/InBlock.gif)
96
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
97
![](/Images/OutliningIndicators/InBlock.gif)
98
![](/Images/OutliningIndicators/InBlock.gif)
99
![](/Images/OutliningIndicators/InBlock.gif)
100
![](/Images/OutliningIndicators/InBlock.gif)
101
![](/Images/OutliningIndicators/InBlock.gif)
102
![](/Images/OutliningIndicators/InBlock.gif)
103
![](/Images/OutliningIndicators/InBlock.gif)
104
![](/Images/OutliningIndicators/InBlock.gif)
105
![](/Images/OutliningIndicators/InBlock.gif)
106
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
107
![](/Images/OutliningIndicators/InBlock.gif)
108
![](/Images/OutliningIndicators/InBlock.gif)
109
![](/Images/OutliningIndicators/InBlock.gif)
110
![](/Images/OutliningIndicators/InBlock.gif)
111
![](/Images/OutliningIndicators/InBlock.gif)
112
![](/Images/OutliningIndicators/InBlock.gif)
113
![](/Images/OutliningIndicators/InBlock.gif)
114
![](/Images/OutliningIndicators/InBlock.gif)
115
![](/Images/OutliningIndicators/InBlock.gif)
116
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
117
![](/Images/OutliningIndicators/InBlock.gif)
118
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
119
![](/Images/OutliningIndicators/InBlock.gif)
120
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
121
![](/Images/OutliningIndicators/InBlock.gif)
122
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
123
![](/Images/OutliningIndicators/InBlock.gif)
124
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
125
![](/Images/OutliningIndicators/InBlock.gif)
126
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
127
![](/Images/OutliningIndicators/InBlock.gif)
128
![](/Images/OutliningIndicators/InBlock.gif)
129
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
130
![](/Images/OutliningIndicators/InBlock.gif)
131
![](/Images/OutliningIndicators/InBlock.gif)
132
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
133
![](/Images/OutliningIndicators/InBlock.gif)
134
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
135
![](/Images/OutliningIndicators/InBlock.gif)
136
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
137
![](/Images/OutliningIndicators/InBlock.gif)
138
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
139
![](/Images/OutliningIndicators/InBlock.gif)
140
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
141
![](/Images/OutliningIndicators/InBlock.gif)
142
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
143
![](/Images/OutliningIndicators/InBlock.gif)
144
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
145
![](/Images/OutliningIndicators/InBlock.gif)
146
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
147
![](/Images/OutliningIndicators/InBlock.gif)
148
![](/Images/OutliningIndicators/InBlock.gif)
149
![](/Images/OutliningIndicators/InBlock.gif)
150
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
151
![](/Images/OutliningIndicators/InBlock.gif)
152
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
153
![](/Images/OutliningIndicators/InBlock.gif)
154
![](/Images/OutliningIndicators/InBlock.gif)
155
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
156
![](/Images/OutliningIndicators/InBlock.gif)
157
![](/Images/OutliningIndicators/InBlock.gif)
158
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
159
![](/Images/OutliningIndicators/InBlock.gif)
160
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
161
![](/Images/OutliningIndicators/InBlock.gif)
162
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
163
![](/Images/OutliningIndicators/InBlock.gif)
164
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
165
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
166
![](/Images/OutliningIndicators/InBlock.gif)
167
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
168
![](/Images/OutliningIndicators/InBlock.gif)
169
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
170
![](/Images/OutliningIndicators/InBlock.gif)
171
![](/Images/OutliningIndicators/InBlock.gif)
172
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
173
![](/Images/OutliningIndicators/InBlock.gif)
174
![](/Images/OutliningIndicators/InBlock.gif)
175
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
176
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
177
![](/Images/OutliningIndicators/InBlock.gif)
178
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
179
![](/Images/OutliningIndicators/InBlock.gif)
180
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
181
![](/Images/OutliningIndicators/InBlock.gif)
182
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
183
![](/Images/OutliningIndicators/InBlock.gif)
184
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
185
![](/Images/OutliningIndicators/InBlock.gif)
186
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
187
![](/Images/OutliningIndicators/InBlock.gif)
188
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
189
![](/Images/OutliningIndicators/InBlock.gif)
190
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
191
![](/Images/OutliningIndicators/InBlock.gif)
192
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
193
![](/Images/OutliningIndicators/InBlock.gif)
194
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
195
![](/Images/OutliningIndicators/InBlock.gif)
196
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
197
![](/Images/OutliningIndicators/InBlock.gif)
198
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
199
![](/Images/OutliningIndicators/InBlock.gif)
200
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
201
![](/Images/OutliningIndicators/InBlock.gif)
202
![](/Images/OutliningIndicators/InBlock.gif)
203
![](/Images/OutliningIndicators/InBlock.gif)
204
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
205
![](/Images/OutliningIndicators/InBlock.gif)
206
![](/Images/OutliningIndicators/InBlock.gif)
207
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
208
![](/Images/OutliningIndicators/InBlock.gif)
209
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
210
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
211
![](/Images/OutliningIndicators/InBlock.gif)
212
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
213
![](/Images/OutliningIndicators/InBlock.gif)
214
![](/Images/OutliningIndicators/InBlock.gif)
215
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
216
![](/Images/OutliningIndicators/InBlock.gif)
217
![](/Images/OutliningIndicators/InBlock.gif)
218
![](/Images/OutliningIndicators/InBlock.gif)
219
![](/Images/OutliningIndicators/InBlock.gif)
220
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
221
![](/Images/OutliningIndicators/InBlock.gif)
222
![](/Images/OutliningIndicators/InBlock.gif)
223
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
224
![](/Images/OutliningIndicators/InBlock.gif)
225
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
226
![](/Images/OutliningIndicators/InBlock.gif)
227
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
228
![](/Images/OutliningIndicators/InBlock.gif)
229
![](/Images/OutliningIndicators/InBlock.gif)
230
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
231
![](/Images/OutliningIndicators/InBlock.gif)
232
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
233
![](/Images/OutliningIndicators/InBlock.gif)
234
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
235
![](/Images/OutliningIndicators/InBlock.gif)
236
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
237
![](/Images/OutliningIndicators/InBlock.gif)
238
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
239
![](/Images/OutliningIndicators/InBlock.gif)
240
![](/Images/OutliningIndicators/InBlock.gif)
241
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
242
![](/Images/OutliningIndicators/InBlock.gif)
243
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
244
![](/Images/OutliningIndicators/InBlock.gif)
245
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
246
![](/Images/OutliningIndicators/InBlock.gif)
247
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
248
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
249
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
250
![](/Images/OutliningIndicators/InBlock.gif)
251
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
252
![](/Images/OutliningIndicators/InBlock.gif)
253
![](/Images/OutliningIndicators/InBlock.gif)
254
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
255
![](/Images/OutliningIndicators/InBlock.gif)
256
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
257
![](/Images/OutliningIndicators/InBlock.gif)
258
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
259
![](/Images/OutliningIndicators/InBlock.gif)
260
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
261
![](/Images/OutliningIndicators/InBlock.gif)
262
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
263
![](/Images/OutliningIndicators/InBlock.gif)
264
![](/Images/OutliningIndicators/InBlock.gif)
265
![](/Images/OutliningIndicators/InBlock.gif)
266
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
267
![](/Images/OutliningIndicators/InBlock.gif)
268
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
269
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
270
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
271
![](/Images/OutliningIndicators/InBlock.gif)
272
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
273
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
274
![](/Images/OutliningIndicators/InBlock.gif)
275
![](/Images/OutliningIndicators/InBlock.gif)
276
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
277
![](/Images/OutliningIndicators/InBlock.gif)
278
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
279
![](/Images/OutliningIndicators/InBlock.gif)
280
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
281
![](/Images/OutliningIndicators/InBlock.gif)
282
![](/Images/OutliningIndicators/InBlock.gif)
283
![](/Images/OutliningIndicators/InBlock.gif)
284
![](/Images/OutliningIndicators/InBlock.gif)
285
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
286
![](/Images/OutliningIndicators/InBlock.gif)
287
![](/Images/OutliningIndicators/InBlock.gif)
288
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
289
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
290
![](/Images/OutliningIndicators/InBlock.gif)
291
![](/Images/OutliningIndicators/InBlock.gif)
292
![](/Images/OutliningIndicators/InBlock.gif)
293
![](/Images/OutliningIndicators/InBlock.gif)
294
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
295
![](/Images/OutliningIndicators/InBlock.gif)
296
![](/Images/OutliningIndicators/InBlock.gif)
297
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
298
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
299
![](/Images/OutliningIndicators/InBlock.gif)
300
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
301
![](/Images/OutliningIndicators/InBlock.gif)
302
![](/Images/OutliningIndicators/InBlock.gif)
303
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
304
![](/Images/OutliningIndicators/InBlock.gif)
305
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
306
![](/Images/OutliningIndicators/InBlock.gif)
307
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
308
![](/Images/OutliningIndicators/InBlock.gif)
309
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
310
![](/Images/OutliningIndicators/InBlock.gif)
311
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
312
![](/Images/OutliningIndicators/InBlock.gif)
313
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
314
![](/Images/OutliningIndicators/InBlock.gif)
315
![](/Images/OutliningIndicators/InBlock.gif)
316
![](/Images/OutliningIndicators/InBlock.gif)
317
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
318
![](/Images/OutliningIndicators/InBlock.gif)
319
![](/Images/OutliningIndicators/InBlock.gif)
320
![](/Images/OutliningIndicators/InBlock.gif)
321
![](/Images/OutliningIndicators/InBlock.gif)
322
![](/Images/OutliningIndicators/InBlock.gif)
323
![](/Images/OutliningIndicators/InBlock.gif)
324
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
325
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
326
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
327
![](/Images/OutliningIndicators/InBlock.gif)
328
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
329
![](/Images/OutliningIndicators/InBlock.gif)
330
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
331
![](/Images/OutliningIndicators/InBlock.gif)
332
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
333
![](/Images/OutliningIndicators/InBlock.gif)
334
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
335
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
336
![](/Images/OutliningIndicators/InBlock.gif)
337
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
338
![](/Images/OutliningIndicators/InBlock.gif)
339
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
340
![](/Images/OutliningIndicators/InBlock.gif)
341
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
342
![](/Images/OutliningIndicators/InBlock.gif)
343
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
344
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
345
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
346
![](/Images/OutliningIndicators/ExpandedBlockEnd.gif)
下面是一个配置文件的样子
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Emoticons/QQ/smile.gif)