Skip to content

Commit

Permalink
disable cache by default, set require browser to false
Browse files Browse the repository at this point in the history
  • Loading branch information
bitslip6 committed Jan 19, 2021
1 parent 1d6149e commit db4a1f5
Show file tree
Hide file tree
Showing 2 changed files with 112 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ allowed_features[geolocation] = "self"

; cache your homepage and serve it instantly, refresh cache after every request
; maximum age (seconds) to serve a cached page, 0 - disables caching
max_cache_age = 4200
max_cache_age = 0


[Input Filtering]
Expand Down Expand Up @@ -148,7 +148,7 @@ whitelist_enable = report
blacklist_enable = true

; if true, only browsers that accept cookies and run javascript will be allowed to connect
require_full_browser = report
require_full_browser = false

; set the honeypot url configuration
honeypot_url = '/ztcegizz/contact'
Expand Down
110 changes: 110 additions & 0 deletions config.ini.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
<?php
$config=array (
'bitfire_enabled' => true,
'allow_ip_block' => false,
'security_headers_enabled' => true,
'enforce_ssl_1year' => false,
'feature_policy' => false,
'allowed_features' =>
array (
'notifications' => 'self',
'push' => 'self',
'geolocation' => 'self',
),
'max_cache_age' => 0,
'web_filter_enabled' => true,
'decode_html' => true,
'spam_filter_enabled' => false,
'xss_block' => 'report',
'sql_block' => 'block',
'web_block' => 'report',
'file_block' => true,
'block_profanity' => false,
'filtered_logging' =>
array (
'cc' => true,
'card' => true,
'cardnumber' => true,
'exp' => true,
'expiration' => true,
'cvv' => true,
'cvv1' => true,
'cvv2' => true,
'pass' => true,
'password' => true,
'password1' => true,
'password2' => true,
),
'botwhitelist' =>
array (
'googlebot' => 'google(bot?).com',
'zoominfobot' => 'googleusercontent.com',
'bingbot' => '(microsoft.com|msn.com)',
'yahoo' => 'yahoo.com',
'duckduckbot' => 'duckduckgo.com',
'baidu' => 'baidu.(com.jp)',
'360spider' => 'baidu.(com.jp)',
'uptimerobot' => 'uptimerobot.com',
'applebot' => 'apple.com',
'redditbot' => 'reddit.com',
'naver.com' => 'naver.com',
'yeti' => 'naver.com',
'statuscake' => 'vultr.com',
'yandex' => 'yandex.(ru|net|com)',
'sogou.com' => 'sogou.com',
'exabot' => 'exalead.com',
'linkedinbot' => '(linkedin.com|microsoft.com|msn.com)',
'facebookexternalhit' => 'AS32934',
'appengine; appid: s~snapchat-proxy)' => '35\\.187\\.*\\.*',
'tumblr' => 'AS2635',
'whatsapp' => 'AS32934',
'twitterbot' => 'AS13414',
'embedly' => 'embed.ly',
'gigabot' => 'gigablast.com',
'alexa' => 'alexa.com',
'jeeves' => 'ask.com',
'aolbuild' => 'aol.com',
'archive.org' => 'archive.org',
'Pintrest' => 'pintrest.com',
'curl' => '127.0.0.1,10.10.10.1',
'observatory' => 'mozilla.com',
'ahrefsbot' => 'ahrefs.com',
),
'allowed_methods' =>
array (
0 => 'GET',
1 => 'OPTIONS',
2 => 'POST',
3 => 'PUT',
4 => 'HEAD',
),
'whitelist_enable' => 'report',
'blacklist_enable' => true,
'require_full_browser' => 'report',
'honeypot_url' => '/ztcegizz/contact',
'check_domain' => false,
'valid_domains' =>
array (
0 => 'localhost',
1 => '127.0.0.1',
),
'rate_limit' => 'report',
'rr_1m' => 25,
'rr_5m' => 50,
'cache_type' => 'shmop',
'report_file' => '/tmp/would_block.json',
'block_file' => '/tmp/block.json',
'bitfire_param' => '_kbuqyrkc',
'browser_cookie' => '_ltfc',
'block_page' => 'blocked.php',
'encryption_key' => 'PzYSeYq99o8iuzHny6YdsCT2',
'secret' => 'RNQNeCaMExTKHPEI',
'password' => 'default_password',
'debug' => true,
'web_uid' => 33,
'response_code' => 403,
'ip_header' => 'REMOTE_ADDR',
'short_block_time' => 600,
'medium_block_time' => 3600,
'long_block_time' => 86400,
);

0 comments on commit db4a1f5

Please sign in to comment.