autospam.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Enable Autospam
  6. |--------------------------------------------------------------------------
  7. |
  8. | Autospam uses NLP and other techniques to detect and mitigate potential
  9. | spam posts from users on your server.
  10. | We recommend enabling this when you have open registrations, regardless
  11. | of how many users you have.
  12. |
  13. */
  14. 'enabled' => env('PF_BOUNCER_ENABLED', false),
  15. /*
  16. |--------------------------------------------------------------------------
  17. | Ignored Tokens
  18. |--------------------------------------------------------------------------
  19. |
  20. | Ignored tokens are for commonly used words that may impact the detection.
  21. | These tokens should be lowercase and not contain spaces or non alpha-
  22. | numerical characters and be in comma-separated format.
  23. |
  24. */
  25. 'ignored_tokens' => env('PF_AUTOSPAM_IGNORED_TOKENS', 'the,a,of,and'),
  26. 'nlp' => [
  27. 'enabled' => false,
  28. 'spam_sample_limit' => env('PF_AUTOSPAM_NLP_SPAM_SAMPLE_LIMIT', 200),
  29. ]
  30. ];