mirror of
https://github.com/cubixle/gridlock.git
synced 2026-04-24 19:54:43 +01:00
start of gridlock
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
Justfile
|
||||||
|
logs
|
||||||
10
Dockerfile
Normal file
10
Dockerfile
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
FROM golang:1 as build
|
||||||
|
COPY . /app
|
||||||
|
WORKDIR /app
|
||||||
|
RUN CGO_ENABLED=0 go build -o /app/bin main.go
|
||||||
|
|
||||||
|
FROM alpine:latest
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=build /app/bin /app/bin
|
||||||
|
RUN chmod +x ./bin
|
||||||
|
CMD ["./bin"]
|
||||||
13
README.md
Normal file
13
README.md
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
<div style="text-align:center">
|
||||||
|
<h1>GridLock</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
This projects aim is to catch as many crawlers as possible.
|
||||||
|
|
||||||
|
It does this by generating random links to randomly generated domains, which will do the same.
|
||||||
|
|
||||||
|
The content displayed from the text to the images are randomly generated on the fly.
|
||||||
|
|
||||||
|
It will use 1000s of random names and words to generate the random links.
|
||||||
|
|
||||||
|
Example: http://cooper-bruce-porter.honey.cubixle.me/
|
||||||
17
docker-compose.live.yml
Normal file
17
docker-compose.live.yml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
version: "3"
|
||||||
|
|
||||||
|
services:
|
||||||
|
server:
|
||||||
|
image: helprob:latest
|
||||||
|
restart: always
|
||||||
|
container_name: helprob
|
||||||
|
environment:
|
||||||
|
- "LOG_FILE_DIR=/var/logs/helprob"
|
||||||
|
- "DOMAIN=honey.cubixle.me"
|
||||||
|
ports:
|
||||||
|
- "127.0.0.1:8070:8070"
|
||||||
|
volumes:
|
||||||
|
- logs:/var/logs/helprob
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
logs:
|
||||||
7
go.mod
Normal file
7
go.mod
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
module github.com/cubixle/gridlock
|
||||||
|
|
||||||
|
go 1.22.0
|
||||||
|
|
||||||
|
require golang.org/x/text v0.14.0
|
||||||
|
|
||||||
|
require github.com/monperrus/crawler-user-agents v0.0.0-20240409084354-0ef518e13a54
|
||||||
4
go.sum
Normal file
4
go.sum
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
github.com/monperrus/crawler-user-agents v0.0.0-20240409084354-0ef518e13a54 h1:48D4Yh5je6RjAZDu6RY+exL0l+EqGy8s9oHlaiuwIy0=
|
||||||
|
github.com/monperrus/crawler-user-agents v0.0.0-20240409084354-0ef518e13a54/go.mod h1:GfRyKbsbxSrRxTPYnVi4U/0stQd6BcFCxDy6i6IxQ0M=
|
||||||
|
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
|
||||||
|
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
|
||||||
15
nginx.conf
Normal file
15
nginx.conf
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
server {
|
||||||
|
server_name *.cubixle.me;
|
||||||
|
location / {
|
||||||
|
proxy_pass http://localhost:8070;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection keep-alive;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_cache_bypass $http_upgrade;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
client_max_body_size 1M;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user