瀏覽代碼

added "whitelist" under [traffic]

Steven Andrés 6 年之前
父節點
當前提交
91f78ecd0f
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      cfg/conf.sample.php

+ 4 - 0
cfg/conf.sample.php

@@ -127,6 +127,10 @@ markdown = "Markdown"
 ; Set this to 0 to disable rate limiting.
 limit = 10
 
+; (optional) if you only want some source IP addresses to create pastes
+; enter their IPv4 address(es) here, separated by commas
+; whitelist = "12.34.56.78,99.88.77.66"
+
 ; (optional) if your website runs behind a reverse proxy or load balancer,
 ; set the HTTP header containing the visitors IP address, i.e. X_FORWARDED_FOR
 ; header = "X_FORWARDED_FOR"