Checkpoint
This commit is contained in:
21
testdata/policy/intercept.rego
vendored
Normal file
21
testdata/policy/intercept.rego
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
package styx.intercept
|
||||
|
||||
reject := 403 if {
|
||||
_target_blocked
|
||||
}
|
||||
|
||||
template := "template/intercepted.html" if {
|
||||
_target_blocked
|
||||
}
|
||||
|
||||
errors contains "Intercepted" if {
|
||||
_target_blocked
|
||||
}
|
||||
|
||||
_target_blocked if {
|
||||
styx.in_domains("bad", input.request.host)
|
||||
}
|
||||
|
||||
_target_blocked if {
|
||||
styx.in_networks("bogons", input.client.ip)
|
||||
}
|
Reference in New Issue
Block a user