Пример #1
0
 def test_edgecast_detection_by_server(self):
     self.response.headers = {self.server: "ECD-conglom"}
     self.assertTrue(WAFApplicationMethods.detect_edgecast(self.response))
Пример #2
0
 def test_incapsula_detection_by_headers(self):
     self.response.headers = {"X-Iinfo": None}
     self.assertTrue(WAFApplicationMethods.detect_incapsula(self.response))
     self.response.headers = {"X-CDN": "Incapsula"}
     self.assertTrue(WAFApplicationMethods.detect_incapsula(self.response))
Пример #3
0
 def test_maxcdn_detection_by_server(self):
     self.response.headers = {self.server: "NetDNA-cache"}
     self.assertTrue(WAFApplicationMethods.detect_maxcdn(self.response))
Пример #4
0
 def test_cloudfront_detection_by_headers(self):
     self.response.headers = {"Via": "cloudfront"}
     self.assertTrue(WAFApplicationMethods.detect_cloudfront(self.response))
     self.response.headers = {"X-cache": "cloudfront"}
     self.assertTrue(WAFApplicationMethods.detect_cloudfront(self.response))
Пример #5
0
 def test_cloudfront_detection_by_server(self):
     self.response.headers = {self.server: "CloudFront"}
     self.assertTrue(WAFApplicationMethods.detect_cloudfront(self.response))
Пример #6
0
 def test_cloudflare_detection_by_headers(self):
     self.response.headers = {"CF-RAY": None}
     self.assertTrue(WAFApplicationMethods.detect_cloudflare(self.response))
Пример #7
0
 def test_cloudflare_detection_by_server(self):
     self.response.headers = {self.server: "cloudflare"}
     self.assertTrue(WAFApplicationMethods.detect_cloudflare(self.response))
Пример #8
0
 def test_maxcdn_detection_by_server(self):
     self.response.headers = {self.server: "NetDNA-cache"}
     self.assertTrue(WAFApplicationMethods.detect_maxcdn(self.response))
Пример #9
0
 def test_edgecast_detection_by_server(self):
     self.response.headers = {self.server: "ECD-conglom"}
     self.assertTrue(WAFApplicationMethods.detect_edgecast(self.response))
Пример #10
0
 def test_incapsula_detection_by_headers(self):
     self.response.headers = {"X-Iinfo": None}
     self.assertTrue(WAFApplicationMethods.detect_incapsula(self.response))
     self.response.headers = {"X-CDN": "Incapsula"}
     self.assertTrue(WAFApplicationMethods.detect_incapsula(self.response))
Пример #11
0
 def test_cloudfront_detection_by_server(self):
     self.response.headers = {self.server: "CloudFront"}
     self.assertTrue(WAFApplicationMethods.detect_cloudfront(self.response))
Пример #12
0
 def test_cloudfront_detection_by_headers(self):
     self.response.headers = {"Via": "cloudfront"}
     self.assertTrue(WAFApplicationMethods.detect_cloudfront(self.response))
     self.response.headers = {"X-cache": "cloudfront"}
     self.assertTrue(WAFApplicationMethods.detect_cloudfront(self.response))
Пример #13
0
 def test_cloudflare_detection_by_server(self):
     self.response.headers = {self.server: "cloudflare"}
     self.assertTrue(WAFApplicationMethods.detect_cloudflare(self.response))
Пример #14
0
 def test_cloudflare_detection_by_headers(self):
     self.response.headers = {"CF-RAY": None}
     self.assertTrue(WAFApplicationMethods.detect_cloudflare(self.response))