Skip to content

Commit 0b1be5c

Browse files
authored
Merge pull request #20 from crowdsecurity/update-doc
update doc
2 parents db649c0 + c86c4aa commit 0b1be5c

File tree

7 files changed

+26
-5
lines changed

7 files changed

+26
-5
lines changed

crowdsec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Plugin URI: https://github.com/crowdsecurity/cs-wordpress-bouncer
55
* Description: Safer Together. Protect your WordPress application with CrowdSec.
66
* Tags: crowdsec-bouncer, wordpress, security, firewall, captcha, ip-scanner, ip-blocker, ip-blocking, ip-address, ip-database, ip-range-check, crowdsec, ban-hosts, ban-management, anti-hacking, hacker-protection, captcha-image, captcha-generator, captcha-generation, captcha-service
7-
* Version: 0.5.0
7+
* Version: 0.5.3
88
* Author: CrowdSec
99
* Author URI: https://www.crowdsec.net/
1010
* Github: https://github.com/crowdsecurity/cs-wordpress-blocker

inc/admin/advanced-settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ function convertInlineIpRangesToLongArray(string $inlineIpRanges): array
254254
return $input;
255255
}, '<p>The <em><a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For" '.
256256
'target="_blank">X-forwarded-For</a></em> HTTP Header will be trust only when the client IP is in this list.'.
257-
'<br><strong>Comma (,)</strong> separated ips or ips ranges. Example: 1.2.3.4/24, 2.3.4.5, 3.4.5.6/27',
257+
'<br><strong>Comma (,)</strong> separated ips or ips ranges. Example: 1.2.3.4/24, 2.3.4.5, 3.4.5.6/27.<br><br>Some common CDN IP list: <a href="https://www.cloudflare.com/fr-fr/ips/" target="_blank">Cloudflare</a>, <a href="https://api.fastly.com/public-ip-list" target="_blank">Fastly</a>',
258258
'fill the IPs or IPs ranges here...', '');
259259

260260
// Field "crowdsec_hide_mentions"

inc/templates/advanced-settings.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,8 @@ function updateDsnDisplay () {
5555
<input type="hidden" name="nonce" value="<?php echo wp_create_nonce('crowdsec_prune_cache'); ?>">
5656
</form>
5757
</div>
58+
<p>
59+
Feel free to ask any questions about this plugin, make your suggestions or raise issues on the <a href="https://wordpress.org/support/plugin/crowdsec/">plugin support page</a> or directly on <a href="https://github.com/crowdsecurity/cs-wordpress-bouncer/issues/new">Github</a>.
60+
</p>
5861
</div>
5962
</div>

inc/templates/settings.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
submit_button();
1313
?>
1414
</form>
15+
<p>
16+
Feel free to ask any questions about this plugin, make your suggestions or raise issues on the <a href="https://wordpress.org/support/plugin/crowdsec/">plugin support page</a> or directly on <a href="https://github.com/crowdsecurity/cs-wordpress-bouncer/issues/new">Github</a>.
17+
</p>
1518
</div>
1619
</div>
1720
</div>

inc/templates/theme.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
submit_button();
1313
?>
1414
</form>
15+
<p>
16+
Feel free to ask any questions about this plugin, make your suggestions or raise issues on the <a href="https://wordpress.org/support/plugin/crowdsec/">plugin support page</a> or directly on <a href="https://github.com/crowdsecurity/cs-wordpress-bouncer/issues/new">Github</a>.
17+
</p>
1518
</div>
1619
</div>
1720
</div>

readme.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ This plugin blocks detected attackers or displays them a captcha to check they a
1313

1414
== Description ==
1515

16+
Note: You must first have CrowdSec [installed on your server. The installation is very simple](https://doc.crowdsec.net/Crowdsec/v1/getting_started/installation/#installation).
17+
1618
CrowdSec is composed of a behavior detection engine, able to block classical attacks like credential bruteforce, port scans, web scans, etc.
1719

1820
Based on the type and number of blocked attacks, and after curation of those signals to avoid false positives and poisoning, a global IP reputation DB is maintained and shared with all network members.

scripts/publish-release.sh

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ git_base_dir=`git rev-parse --show-toplevel`
2121
# Update version everywhere (add and commit changes), tag and release
2222
git checkout main
2323
if [[ $platform == 'linux' ]]; then
24-
sed -i -E "s/Version [0-9]+\.[0-9]+\.[0-9]/Version $NEW_GIT_VERSION_WITHOUT_V_PREFIX/" $git_base_dir/crowdsec.php
24+
sed -i -E "s/Version: [0-9]+\.[0-9]+\.[0-9]/Version: $NEW_GIT_VERSION_WITHOUT_V_PREFIX/" $git_base_dir/crowdsec.php
2525
sed -i -E "s/Stable tag: [0-9]+\.[0-9]+\.[0-9]/Stable tag: $NEW_GIT_VERSION_WITHOUT_V_PREFIX/" $git_base_dir/crowdsec.php
2626
sed -i -E "s/v[0-9]+\.[0-9]+\.[0-9]/v$NEW_GIT_VERSION_WITHOUT_V_PREFIX/" $git_base_dir/inc/constants.php
2727
else
28-
sed -i "" -E "s/Version [0-9]+\.[0-9]+\.[0-9]/Version $NEW_GIT_VERSION_WITHOUT_V_PREFIX/" $git_base_dir/crowdsec.php
28+
sed -i "" -E "s/Version: [0-9]+\.[0-9]+\.[0-9]/Version: $NEW_GIT_VERSION_WITHOUT_V_PREFIX/" $git_base_dir/crowdsec.php
2929
sed -i "" -E "s/Stable tag: [0-9]+\.[0-9]+\.[0-9]/Stable tag: $NEW_GIT_VERSION_WITHOUT_V_PREFIX/" $git_base_dir/crowdsec.php
3030
sed -i "" -E "s/v[0-9]+\.[0-9]+\.[0-9]/v$NEW_GIT_VERSION_WITHOUT_V_PREFIX/" $git_base_dir/inc/constants.php
3131
fi
@@ -36,4 +36,14 @@ git commit -m "bump version to v$NEW_GIT_VERSION_WITHOUT_V_PREFIX"
3636
git tag v$NEW_GIT_VERSION_WITHOUT_V_PREFIX
3737
git push
3838
git push origin v$NEW_GIT_VERSION_WITHOUT_V_PREFIX
39-
gh release create --draft v$NEW_GIT_VERSION_WITHOUT_V_PREFIX --title v$NEW_GIT_VERSION_WITHOUT_V_PREFIX
39+
gh release create --draft v$NEW_GIT_VERSION_WITHOUT_V_PREFIX --title v$NEW_GIT_VERSION_WITHOUT_V_PREFIX
40+
41+
42+
P1 - "Force Captcha wall for these decision types:"
43+
44+
P2 - add the trusted proxy ip from cloudflare by default https://www.cloudflare.com/fr-fr/ips/
45+
P2 - Afficher les logs
46+
P2 Stream mode passif : permettre de ne pas raffraichir la liste (Ex avec un REDIS partagé)
47+
48+
P3 - "Force Ban wall for these decision types:"
49+
P3 - "Bypass any walls for these decision types:"

0 commit comments

Comments
 (0)