Skip to content

Commit a3f498b

Browse files
committed
initial commit
0 parents  commit a3f498b

28 files changed

+2359
-0
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = tab
6+
indent_size = 4
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

.github/release-drafter.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
template: |
2+
## What’s Changed
3+
4+
$CHANGES
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: build-package
2+
3+
on:
4+
release:
5+
types: prereleased
6+
7+
jobs:
8+
9+
build-package:
10+
name: Create and upload package
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v1
14+
- name: Create zip package
15+
run: zip -r "cs-wordpress-blocker.zip" . -x "./tests/**" -x ".git/**" -x "./github/**"
16+
- name: Upload to release
17+
uses: JasonEtco/upload-to-release@master
18+
with:
19+
args: cs-wordpress-blocker.zip application/zip
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
# branches to consider in the event; optional, defaults to all
6+
branches:
7+
- master
8+
9+
jobs:
10+
update_release_draft:
11+
runs-on: ubuntu-latest
12+
steps:
13+
# Drafts your next Release notes as Pull Requests are merged into "master"
14+
- name: Create draft release
15+
uses: release-drafter/release-drafter@v5
16+
with:
17+
config-name: release-drafter.yml
18+
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Composer
2+
vendor/
3+
4+
# Systems
5+
.DS_Store
6+
7+
#Tools
8+
9+
# App
10+
.bouncer-key
11+
.cache/
12+
*.log

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# CrowdSec WordPress Bouncer
2+
3+
## How to install this plugin in WordPress
4+
5+
```
6+
- Go to wordpress backend
7+
- Go to 'Plugins' -> 'Add New' And click on "Upload Plugin" (at the top of the page)
8+
- Choose your zipped plugins file and install it
9+
- Now you can activate it and see a new menu named "CrowdSec"
10+
```

composer.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "crowdsec/wordpress-bouncer",
3+
"description": "Wordpress plugin to reject IP detected as malicious by CrowdSec",
4+
"type": "project",
5+
"authors": [
6+
{
7+
"name": "CrowdSec",
8+
"email": "info@crowdsec.net"
9+
}
10+
],
11+
"require": {
12+
"crowdsec/bouncer": "^0.4.1",
13+
"gregwar/captcha": "^1.1"
14+
},
15+
"autoload": {
16+
"psr-4": {
17+
"": "./"
18+
}
19+
}
20+
}

0 commit comments

Comments
 (0)