File: ban_file

package info (click to toggle)
crossfire 1.75.0-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 24,168 kB
  • sloc: ansic: 83,169; sh: 4,659; perl: 1,736; lex: 1,443; makefile: 1,199; python: 43
file content (33 lines) | stat: -rw-r--r-- 1,758 bytes parent folder | download | duplicates (4)
1
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
# ban_file -- prevent users or sites from playing
#
# A file which contains users or sites which are banned from playing.
# wildcards can be used in the file.  Valid entries are put on separate lines.
# For a ban to result, both the user and IP must be true.
# Note: Crossfire does not do a IP -> DNS name, so matches for the
# second part must be by IP.
#
# Syntax is "user@ip.address".  Note that when actually putting in lines, the
# double quotes should be ignored.  user can be "*" to match any user.  The
# line may be prefixed by '~' to allow an entry.  The lines are matched in the
# given order; the first match is used.
#
# The IP address portion is done as a substring and not wildcard
# match.  Some examples, and results:
#
# "mark@tavern.us" - won't work - tavern.us would not match - must be ip
#                    address.
# "*@10.1.31.1"    - users from 10.1.31.1 will not be able to play.
# "*@10.1.31.*"    - will not work - * is not a wildcard for host matches.
# "*@10.1.31."     - will do above - every ip that has 10.1.31. will be banned.
# "*@10.1.31"      - will ban above, but would also ban things like
#                    "129.10.1.31".
# "mark@10.1.31.1" - user mark from 10.1.31.1 will not be able to play.
# "mark@"          - user mark will not be able to play.
# "mark@*"         - user mark will not be able to play - * matches any host
#                    name.
# "~mark@1.2.3.4"  - accept user mark from 1.2.3.4, regardless if a following
#                    line would forbid it.  For example, together with a
#                    following line "mark@*" would allow mark to play only if
#                    he connects from 1.2.3.4.
#
# Ip address can be determined by looking at the logs, or with the who command.