미디어위키 API 도움말

이 페이지는 자동으로 생성된 미디어위키 API 도움말 문서입니다.

설명 문서 및 예시: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=regexblock

(main | regexblock)
  • 이 모듈은 read 권한을 요구합니다.
  • 이 모듈은 write 권한을 요구합니다.
  • 이 모듈은 POST 요청만을 허용합니다.
  • 출처: RegexBlock
  • 라이선스: GPL-2.0-or-later

정규 표현식으로 사용자의 이름과 IP 주소를 차단합니다.

변수:
regex

The regular expression to block. Note that when the "exact" param is given in the URL, this is not treated as a regular expression but rather as a simple string.

이 변수는 필수입니다.
expiry

Expiry time. May be relative (e.g. 5 months or 2 weeks) or absolute (e.g. 2014-09-18T12:34:56Z). If set to infinite, indefinite, or never, the block will never expire.

기본값: never
reason

차단 이유입니다.

기본값: (비어 있음)
nocreate

계정 생성을 막습니다.

유형: 불리언 (자세한 정보)
exact

Use exact matching to block the given name precisely as given (as opposed to treating it as a regular expression).

유형: 불리언 (자세한 정보)
token

"csrf" 토큰은 action=query&meta=tokens에서 가져옵니다

이 변수는 필수입니다.
예시:
Block the exact IP address "192.0.2.5" for three days with the reason "First strike"
api.php?action=regexblock&regex=192.0.2.5&expiry=3%20days&reason=First%20strike&exact=&token=123ABC [연습장에서 열기]
Block the regular expression "SpamUser.*" permanently, which blocks any and all users whose user name matches that expression, such as "SpamUser65", with the reason "Bad username" and also prevent any and all users whose user name matches the regular expression from creating new user accounts.
api.php?action=regexblock&regex=SpamUser.*&expiry=never&reason=Bad%20username&nocreate=&token=123ABC [연습장에서 열기]