autospam.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. 'live_filters' => [
  31. 'enabled' => env('PF_AUTOSPAM_LIVE_FILTERS_ENABLED', false),
  32. 'filters' => env('PF_AUTOSPAM_LIVE_FILTERS_CSV', ''),
  33. ]
  34. ];