Setting Up a Forum on 1C-Bitrix: Permissions, Performance, Protection

Setting up a forum in Bitrix often causes performance issues or data leaks due to incorrect permissions. On one project with a catalog of 100,000 products and a feedback forum, page load time was 8 seconds because of missing indexes. After optimization, response time dropped to 0.8 seconds—a 10x imp

Our competencies:

Frequently Asked Questions

Latest works

  • B2B ADVANCE company website development
    B2B ADVANCE company website development
    1466
  • Website development for FIXPER company
    Website development for FIXPER company
    1019
  • Development based on Bitrix, Bitrix24, 1C for the company Development of an Online Appointment Booking Widget for a Medical Center
    Development based on Bitrix, Bitrix24, 1C for the company Development of an Online Appointment Booking Widget for a Medical Center
    764
  • Development based on 1C Enterprise for MIRSANBEL
    Development based on 1C Enterprise for MIRSANBEL
    882
  • Website development on CRM Bitrix24 for DOLBIMBY
    Website development on CRM Bitrix24 for DOLBIMBY
    811
  • Development based on Bitrix24 for the company TECHNOTORGKOMPLEKS
    Development based on Bitrix24 for the company TECHNOTORGKOMPLEKS
    1167

Setting up a forum in Bitrix often causes performance issues or data leaks due to incorrect permissions. On one project with a catalog of 100,000 products and a feedback forum, page load time was 8 seconds because of missing indexes. After optimization, response time dropped to 0.8 seconds—a 10x improvement. Clients complain about spam (30% of unprotected messages are spam), slow speed, and complex integration. The forum module is a full-featured system with a hierarchy: forum → topic → message. Data is stored in tables b_forum, b_forum_topic, b_forum_message. The module supports moderation, attachments, polls, and subscriptions. Despite its age, it remains a working tool for support and communities. Our experience covers over 50 projects. We guarantee quality and on-time delivery. For a quick setup, contact us for a consultation on your forum.

Case: 100,000 product catalog

A client—an online store integrated with 1C—used a forum for product reviews and questions. After launch, the forum page loaded in 8 seconds, and spam bots flooded 70% of topics within a week. Analysis revealed missing indexes on b_forum_message and disabled caching. We added a composite index (TOPIC_ID, POST_DATE), enabled tagged component caching, and set up pre-moderation for new users. Result: load speed dropped to 0.8 seconds, spam decreased by 95%. Our forum tuning solution runs 5 times faster than a typical configuration.

How to configure forum permissions?

Permissions are assigned by user groups. Levels:

Permission Description
A No access
E Read
I Create topics
M Reply in topics
Q Moderation
U Administration

Assign in each forum's settings, "Permissions" tab. Group 'All Users (including unauthenticated)' → E (read only). Authenticated → M. Moderators → Q. Anonymous posts are enabled by the ALLOW_ANONYMOUS parameter—off by default. For public forums with a low entry barrier, this increases moderation volume, so pre-moderation is recommended.

Why performance is critical?

A forum with tens of thousands of topics and hundreds of thousands of messages can slow down. Key points:

  • Indexes on b_forum_message for columns TOPIC_ID, AUTHOR_ID, POST_DATE—check their presence. Without them, queries are slow. Adding an index on POST_DATE speeds up date sorting by a factor of 5.
  • Caching of forum and topic lists—the CACHE_TIME parameter in components. According to official 1C-Bitrix documentation, caching increases load speed up to 10 times.
  • Pagination: Bitrix uses LIMIT/OFFSET, which is slow on large tables. For forums with 1M+ messages, consider keyset pagination via customization—this gives a 3-4x speed improvement when navigating between pages.

For optimization, use indexes:

CREATE INDEX idx_topic_date ON b_forum_message (TOPIC_ID, POST_DATE); CREATE INDEX idx_author ON b_forum_message (AUTHOR_ID); 

Common errors and their resolution

Error Consequence Solution
Missing indexes Page load >5 sec Add indexes on b_forum_message
Incorrect permissions Data leaks or spam Set permissions by groups
Caching disabled Poor performance Enable component caching

Integration with other modules

  • Forum + infoblock—comments to blog articles or catalog items via the bitrix:forum.comments component. The FORUM_ID parameter specifies the forum. A topic is automatically created for each item. Integration takes 1-2 hours.
  • Forum + technical support—the support module uses the forum to discuss tickets. Ticket messages are stored as forum messages. Useful for a unified history of requests.
  • Forum + Bitrix24—in the on-premise Bitrix24, the forum is used for comments on tasks and in the activity stream. Internal use without external risks.

Spam protection

An unprotected forum will be filled with spam in days. Measures:

  • CAPTCHA—enable in the module settings. Reduces automated registrations by 80%.
  • Pre-moderation for new users—first N messages go through a moderator. Implemented via the OnBeforeMessageAdd handler with a check of the author's message count.
  • Stop words—filter profanity and spam phrases. Set in Settings → Module Settings → Forum → Stop Words.
  • IP ban—built-in function, available to moderators.

How to set up a forum: step-by-step

  1. Audit current configuration—check indexes, caching, permissions.
  2. Design permissions—define groups and access levels.
  3. Optimize database—create indexes, configure caching.
  4. Integration—connect forum to infoblocks or support system.
  5. Testing—load testing with speed and protection checks.
  6. Documentation and training—deliver instructions to moderators.

What is included in the work

  • Audit of the current forum configuration.
  • Permission setup and integration with infoblocks.
  • Caching and performance optimization.
  • Load testing.
  • Documentation and training.

Contact us for a free consultation on forum setup. Order a professional audit—get a stable forum with spam protection and high performance.

Additional information about the forum module can be found in the official documentation.