Errors when updating Drupal Browscap module

210 views
Skip to first unread message

Rob Harvey

unread,
Oct 28, 2014, 9:36:17 AM10/28/14
to brow...@googlegroups.com
I've just installed the Drupal Browscap module on a development site which I've had to re-install after debugging some issues. Now I wish to use it again but sadly I am encountering a number of errors.

The module is currently stating the following: 'Current browscap data version: Never fetched.' but when I select the update button I then encounter the following: 'Couldn't retrieve updated browscap: Too Many Requests'.

Is there a way to manually add/update the data?

I don't think (other than cron) I've made many requests to go over the fair usage policy.

If it was possible to unblock the server, the address is 159.253.213.

Thank you.

James Titcumb

unread,
Oct 28, 2014, 11:17:52 AM10/28/14
to browscap on behalf of Rob Harvey

Hi Rob,

I'm afraid that is not a valid IP address...

If you examine the response from the server, the content body will state which IP address has been banned for abuse.

Thanks
James

--
You received this message because you are subscribed to the Google Groups "browscap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to browscap+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rob Harvey

unread,
Oct 28, 2014, 11:23:49 AM10/28/14
to browscap on behalf of James Titcumb
Sorry James, I omitted the last digits of the server: 159.253.213.196

Do you know how/where I can view the response from the server (sadly there's not much documentation for the Drupal Module).

Many thanks,

Rob

--
You received this message because you are subscribed to a topic in the Google Groups "browscap" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/browscap/ViQswUPspsU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to browscap+u...@googlegroups.com.

James Titcumb

unread,
Oct 28, 2014, 3:46:35 PM10/28/14
to browscap on behalf of Rob Harvey
Hi Rob,

Looks like your ban is only a temporary ban (hence HTTP status code 429 - Too Many Requests) - note that if you receive more than 5 temporary bans in a 3 day period, then you would be permanently banned (and you'll begin receiving HTTP 403 Forbidden).

I have never used Drupal before - does it use browscap/browscap-php (https://github.com/browscap/browscap-php) library underneath do you know? Note that this is distinct from GaretJax's original version. If so we can support that part of it, and my first recommendation would be to ensure you are using the most recent release of that (2.0.4) as we recently added some code to reduce the risk of bans using this component.

Thanks
James

Rob Harvey

unread,
Oct 29, 2014, 5:42:37 AM10/29/14
to browscap on behalf of James Titcumb
Hi James,

The Drupal module stores the latest version of the ini (referencing the version-number URL) within a local database. A function can then be called to use the terms set (i.e. $is_mobile or $is_tablet, etc.). When the module is first installed, the initial download of the ini is required. After the initial download of the ini is stored within the database, it is only updated (via cron) if the version number is different from the current.

Sadly I can't download the initial ini due to the number of requests? How long does a temporary ban last? Is there a way to reset the ban so that I can download the base list? I've then set the Drupal module to update (via cron) every 4 weeks.

Many thanks,

Rob

James Titcumb

unread,
Oct 29, 2014, 7:24:19 AM10/29/14
to browscap on behalf of Rob Harvey

A temporary ban lasts one hour. All the information on how the rate limiting system works is on http://browscap.org/ in the Rate Limiting section :)

Reply all
Reply to author
Forward
0 new messages