Download pool/shard002/Python/0017767_incapsula.py from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 508 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard002/Python/0017767_incapsula.py
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard002/Python/0017767_incapsula.py
-
curl -L -o 0017767_incapsula.py https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard002/Python/0017767_incapsula.py
508 Bytes
| #!/usr/bin/env python | |
| ''' | |
| Copyright (C) 2020, WAFW00F Developers. | |
| See the LICENSE file for copying permission. | |
| ''' | |
| NAME = 'Incapsula (Imperva Inc.)' | |
| def is_waf(self): | |
| schemes = [ | |
| self.matchCookie(r'^incap_ses.*?='), | |
| self.matchCookie(r'^visid_incap.*?='), | |
| self.matchContent(r'incapsula incident id'), | |
| self.matchContent(r'powered by incapsula'), | |
| self.matchContent(r'/_Incapsula_Resource') | |
| ] | |
| if any(i for i in schemes): | |
| return True | |
| return False |