mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
- .aclj files contain access controls in reverse sorted, CDXJ-like format - ./sample_archive/acl contains sample acl files - directory and single-file acl sources (extend directory aggregator and file index source) - tests for longest-prefix acl match - tests for acl applied to collection - pywb.utils.merge -- merge(..., reverse=True) support for py2.7 (backported from py3.5) - acl types: * allow - all allowed * block - allowed in index (as blocked) but content not allowed, served as 451 * exclude - removed from index and content, served as 404 - warcserver: AccessChecker inited if 'acl_paths' specified in custom collections - exceptions: * clean up wbexception, subclasses provide the status code, message loaded automatically * warcserver handles AccessException with json response (now with 451 status) * pass status to template to allow custom handling
10 lines
347 B
Plaintext
10 lines
347 B
Plaintext
com,example, - {"access": "exclude"}
|
|
com,example)/abc/page.html - {"access": "allow"}
|
|
com,example)/abc/ef - {"access": "block"}
|
|
com,example)/abc/cd - {"access": "block"}
|
|
com,example)/abc/ab - {"access": "block"}
|
|
com,example)/abc - {"access": "block"}
|
|
com,exampke)/ - {"access": "allow"}
|
|
com,ex)/ - {"access": "exclude"}
|
|
com, - {"access": "allow"}
|