You don't have permission to access /1.2/ on this server.

885 views
Skip to first unread message

dVital

unread,
Oct 31, 2011, 6:54:52 AM10/31/11
to MailChimp API Discuss
Hello!

If I run this code:
$listMembers = $api->listMembers('47xxxxxxx', 'subscribed');

I get error:

Bad Response. Got This:
Forbidden
You don't have permission to access /1.2/ on this server.
Apache/2.2.3 (CentOS) Server at us2.api.mailchimp.com Port 80

What is mean?

jesse

unread,
Oct 31, 2011, 8:55:05 AM10/31/11
to MailChimp API Discuss
Sounds like we banned your IP for abusive looking behavior. Give me
the IP, your username, or the u parameter from your hosted signup form
and I can take a look. In the meantime you should also examine your
code and make sure it's actually doing what is intended and not, say,
making thousands of totally unnecessary calls.


jesse

dVital

unread,
Oct 31, 2011, 10:40:08 AM10/31/11
to MailChimp API Discuss
This code worked very well during last year. And I'm sure this code is
right.

Required parameters I send to you to your mail.

jesse

unread,
Oct 31, 2011, 11:01:59 AM10/31/11
to MailChimp API Discuss
Alright, you are doing all sorts of things that are pretty bad.

First, and what got you caught up, is you have code pretty constantly
hitting listsForEmail and listSubscribe with what I presume are
invalid API Keys since they are being registered as not being
authenticated. You need to track that down and eliminate them.

Second, you are totally using our service in a manner it was never
intended by creating and sending campaigns to single users. Those
should be sent using a transactional email service such as STS:

http://blog.mailchimp.com/mailchimp-launches-transactional-email-service-on-top-of-amazon-ses/

That simply needs to be stopped immediately.

Finally, most of the rest of the calls you are making are fairly
suspect. In particular, the likelihood of needing to call
listsForEmail and listUpdateMember for 20% of your total list size
every day is pretty low. There's probably also little reason to be
calling listMembers() as many times per day as you are.

I'll have your IP unblocked for now, but if you do not fix those
things, you can expect to have more issues in the future.


jesse


On Oct 31, 10:40 am, dVital <vitaliyso...@gmail.com> wrote:
> This code worked very well during last year. And I'm sure this code is
> right.
>
> Required parameters I send to you to your mail.
>
> On 31 ÏËÔ, 16:55, jesse <je...@mailchimp.com> wrote:
>
>
>
> > Sounds like we banned your IP for abusive looking behavior. Give me
> > the IP, your username, or the u parameter from your hosted signup form
> > and I can take a look. In the meantime you should also examine your
> > code and make sure it's actually doing what is intended and not, say,
> > making thousands of totally unnecessary calls.
>
> > jesse
>

dVital

unread,
Nov 14, 2011, 12:33:17 PM11/14/11
to MailChimp API Discuss
We change code. Please, unblock our IP. :)

On 31 окт, 19:01, jesse <je...@mailchimp.com> wrote:
> Alright, you are doing all sorts of things that are pretty bad.
>
> First, and what got you caught up, is you have code pretty constantly
> hitting listsForEmail and listSubscribe with what I presume are
> invalid API Keys since they are being registered as not being
> authenticated. You need to track that down and eliminate them.
>
> Second, you are totally using our service in a manner it was never
> intended by creating and sending campaigns to single users. Those
> should be sent using a transactional email service such as STS:
>
> http://blog.mailchimp.com/mailchimp-launches-transactional-email-serv...

jesse

unread,
Nov 14, 2011, 1:29:09 PM11/14/11
to MailChimp API Discuss
Your IP was already unblocked, but the only part of your code you
appear to have changed is sending transactional emails and the
listMembers() calls. Given that you didn't notice, you may also want
to work on your error logging.

You *really* should track down the unauthenticated calls being made
(likely using a bad API Key) since that's either code you expect to be
working that isn't or code that simply should not be running - all of
those calls are to listsForEmail() or listSubscribe().


jesse

dVital

unread,
Nov 14, 2011, 2:20:58 PM11/14/11
to MailChimp API Discuss
I switch off all transactional emails. We don't use listsForEmail() or
listSubscribe().

jesse

unread,
Nov 14, 2011, 2:26:38 PM11/14/11
to MailChimp API Discuss
That's even further reason to take another look at what is actually
running on your server. Here's the call count so far today from your
IP:

+---------+------------+------------------+----------+
| user_id | user_agent | method | count(*) |
+---------+------------+------------------+----------+
|bad_auth | MCAPI/1.2 | listsForEmail | 2924 |
|bad_auth | MCAPI/1.2 | listSubscribe | 1931 |
| xxx | MCAPI/1.2 | listsForEmail | 3227 |
| xxx | MCAPI/1.2 | listSubscribe | 41 |
| xxx | MCAPI/1.2 | listUnsubscribe | 2 |
| xxx | MCAPI/1.2 | listUpdateMember | 2119 |
+---------+------------+------------------+----------+


You can see also see those calls on your API dashboard. You're good
for now, but that's likely to cause you to start receiving warnings.


jesse
Reply all
Reply to author
Forward
0 new messages