實現簡單的 hosts 添加和刪除工具

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

83

84

85

86

87

88

----------------以下是hosts的相關格式------此程序只適用于以下格式的hosts
# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
#127.0.0.1 localhost
218.11.132.81 f1.xiami.net #f3.xiami.net
#Goog.le
203.208.37.99 goog.le
203.208.37.99 webcache.googleusercontent.com
最后貼上一個我朋友的博客http://sneezry.com/ 里面有相關google的中國穩(wěn)定的訪問方式一文值得推薦
posted on 2011-02-21 00:01 scorpio小蝎 閱讀(1070) 評論(0) 編輯 收藏 所屬分類: C#