Sorry, resource removed due to abuse by lame script writers
-
On my setup, requests to images were returning a PHP error. After some hunting I found that
UBP_Get_Public_IP class
(in ‘class-get-public-ip.php’ was failing because the IP look up request to ‘baremetal.com’ was returning a 403 with the body of ‘Sorry, resource removed due to abuse by lame script writers’. Which is fine. The plugin has some redundancy for that, but it then trys an IP look up on hostnametoip.com which is possibly dead (timing-out both in my browser and in the lookup resulting in a WP_Error.Because of this line 64 was issuing a fatal error as
strip_tags
can’t handle a object of type WP_Error as array.Adding a check on the
$response
result allows the script to continue on to the 3rd ip look up request (which is working at this time).FEATURE: Longterm I would add the ability to define the IP address (if it is known and static – most hosts are) through a DEFINE in wp_config (I know you can add your own
ubp_ip_url
function but it’s a lot of work and may not be needed. Setting a static IP is also a lot faster and less resource intensive).
- The topic ‘Sorry, resource removed due to abuse by lame script writers’ is closed to new replies.