block alibaba
This commit is contained in:
parent
bc09fb9101
commit
353640098e
2
privfrontends/blocked-ranges.yaml
Normal file
2
privfrontends/blocked-ranges.yaml
Normal file
File diff suppressed because one or more lines are too long
@ -16,6 +16,8 @@
|
|||||||
when: service.value.docker_settings
|
when: service.value.docker_settings
|
||||||
- name: Setup Caddy
|
- name: Setup Caddy
|
||||||
hosts: privfrontends
|
hosts: privfrontends
|
||||||
|
vars_files:
|
||||||
|
- ./blocked-ranges.yaml
|
||||||
tasks:
|
tasks:
|
||||||
- name: Copy Caddyfile
|
- name: Copy Caddyfile
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
|
@ -76,6 +76,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@denied client_ip {{ blocked_ranges }}
|
||||||
|
respond @denied 403 "Unfortunately, your IP is part of a range that has been involved in mass spam to our servers. If you think our action was a mistake, please email contact@projectsegfau.lt."
|
||||||
|
|
||||||
|
|
||||||
import acmedns
|
import acmedns
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user