עקיפת מגבלת "מספר חשבונות חדשים מקסימלי לכל כתובת IP ברישום" בעת יצירת משתמשים דרך API

סיכום מבוסס בינה מלאכותית

shufflepuff encountered an error when creating users via the Discourse API, due to hitting the ‘Max new accounts per registration IP’ limit. The IP in question is fixed, as requests originate from a central server. JammyDodger suggested bypassing the restriction by allowing the specific IP address via the /admin/logs/screened_ip_addresses page, noting that wildcards or CIDR notation can also be used for ranges. shufflepuff initially tried this but still received the error — until they remembered to also add the IPv6 address, after which the API user creation worked successfully. This confirms that both IPv4 and IPv6 addresses must be explicitly allowlisted if both are in use. The solution avoids disabling the global max_new_accounts_per_registration_ip setting, preserving security for other IPs while enabling automated user creation from trusted sources.

שלום, אני משתמש באסימון API גלובלי כדי ליצור משתמשים בפורום Discourse שלי. שמתי לב שזה הפסיק לעבוד, עם הודעת השגיאה הבאה:

> רישומים חדשים אינם מורשים מכתובת ה-IP שלך (הגעת למגבלה המרבית). צור קשר עם איש צוות.

כתובת ה-IP תמיד זהה, מכיוון שבקשות אלה מגיעות משרת מרכזי שלי.

רציתי לדעת אם יש הגדרה שאני יכול להפעיל כדי לבטל את הבדיקה הזו כאשר המשתמש נוצר באמצעות נקודת הקצה של ה-API POST /users.json, מכיוון שלא הייתי רוצה להגדיר את max_new_accounts_per_registration_ip ל-0.

תודה מראש!

I think you can ‘allow’ an individual IP address from your /admin/logs/screened_ip_addresses page. This should then let you bypass that restriction for only that IP.

ETA: A little more info from the guide:

ניסיתי להוסיף את כתובת ה-IP לרשימה, אבל לצעריי זה עדיין נותן לי את אותה השגיאה כשאני מנסה ליצור משתמש דרך ה-API.

עריכה: שכחתי להוסיף גם את כתובת ה-IPv6. נראה שעכשיו זה עובד!