changeset 59:e4c78b3eace7

stop bothering Amazon.co.uk at all
author Charlie Root
date Sun, 09 Jun 2019 06:49:35 -0400
parents 39600878ff93
children 05f29eb72283
files xml/doAmazonRequest.php
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/xml/doAmazonRequest.php	Sun Jun 09 06:48:35 2019 -0400
+++ b/xml/doAmazonRequest.php	Sun Jun 09 06:49:35 2019 -0400
@@ -6,6 +6,10 @@
 
 function doAmazonRequest($ext, $parameters, $try, $dbl='x', $wantXML=True)
 {
+  /* Uncomment next line to disable all requests from UK site */
+  if ($ext=="co.uk") {
+    throw new Exception("ThrottledRepeatedly");
+  }
   global $public_key, $private_key;
   $requestURI = $_SERVER['REQUEST_URI'];
   $requestIP = $_SERVER['REMOTE_ADDR'];