docs
This commit is contained in:
5
example/built-in/forbid/.local-web-server.json
Normal file
5
example/built-in/forbid/.local-web-server.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"forbid": [
|
||||
"/admin/*", "*.php"
|
||||
]
|
||||
}
|
1
example/built-in/forbid/admin/blocked.html
Normal file
1
example/built-in/forbid/admin/blocked.html
Normal file
@ -0,0 +1 @@
|
||||
<h1>Forbidden page</h1>
|
1
example/built-in/forbid/allowed.html
Normal file
1
example/built-in/forbid/allowed.html
Normal file
@ -0,0 +1 @@
|
||||
<h1>A permitted page</h1>
|
5
example/built-in/forbid/index.html
Normal file
5
example/built-in/forbid/index.html
Normal file
@ -0,0 +1,5 @@
|
||||
<h1>Forbidden routes</h1>
|
||||
|
||||
<p>
|
||||
Notice you can access <a href="allowed.html">this page</a>, but not <a href="admin/blocked.html">this admin page</a> or <a href="something.php">php file</a>.
|
||||
</p>
|
1
example/built-in/forbid/something.php
Normal file
1
example/built-in/forbid/something.php
Normal file
@ -0,0 +1 @@
|
||||
<?php echo "i'm coding PHP templatez!\n" ?>
|
Reference in New Issue
Block a user