1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

[splendidpoint.com] AntiSPAM - Prevent Links and Emails

Discussion in 'Add-on Releases [Archive]' started by Sadik B, Jul 30, 2011.

Thread Status:
Not open for further replies.
  1. Sadik B

    Sadik B Well-Known Member

    This plugin allows you to prevent certain usergroups from posting links and email addresses until they reach a certain number of posts set by you. This will throw an error message denying the content which contains the links / Emails.

    Features (Version 1.0.1, released on 15th Dec 2011)
    • Can set no. of posts in AdminCP
    • Can select which usergroups the limit applies to. Admins and Mods are automatically exempt.
    • Checks for links and email addresses in
      • New Thread
      • Reply
      • Editing Post
      • New Conversation
      • Editing Conversation
      • Reply to Conversation
      • Profile Posts
      • Editing Profile Posts
      • Commenting on Profile Posts
      • Signatures (There is an AdminCP Option for this)
    • Uses Phrase AntiSPAM_posts_error_message for the error message displayed.
    Limitations
    • Currently I am using Regex to check for links and email addresses. While the check works perfectly, regex isn't the most efficient way of doing this. Very very busy boards should know this before installing. I plan to run the text through Xenforo's link parser sometime in future.
    This has been tested on my Xampp localhost and is live on SplendidPoint. There *may* be bugs though unlikely as the code is very clean and simple.

    This was created and tested on XF 1.0.4 and XF 1.1.0.

    Let me know if you face any problems with it.
     

    Attached Files:

    Hutek, Alien, Mutt and 12 others like this.
  2. Gatses

    Gatses Member

    If the user has 0 messages, then displays the following: " You cannot post links or email addresses until you have 10 posts. This is to prevent SPAM " Even if in the settings put 5 or 15, still displays 10.
     
  3. Sadik B

    Sadik B Well-Known Member

    That's because in the phrase I have written that. Just change the phrase.
     
  4. Sadik B

    Sadik B Well-Known Member

    Ok Changed Phrase text. Now it says,

    You have insufficient number of posts to post links or email addresses. This is to prevent SPAM

    instead of specifying number of posts.
     
  5. Floris

    Floris Guest

    No need to disclose to the spammer how much they need. I see no reason to even report back an error.
    Just filter the content by moderating the post?
     
    Stormraven likes this.
  6. Sadik B

    Sadik B Well-Known Member

    This does not moderate the post. This totally denies the post. I can see that some people may like that posts with links get moderated instead of denied, I will see if it's simple enough to provide as an option.
     
  7. Floris

    Floris Guest

    +1
     
    Digital Doctor likes this.
  8. Anthony Parsons

    Anthony Parsons Well-Known Member

    Before I review changing from Borbole's to this, as this covers profile content as well, awesome by the way... have you checked whether this works when editing the post? That was a problem with Borboles initially.... you could post normally, no links, then edit, and the links would pass without the error message.

    Without having looked at this, is this so with this mod right from start?
     
  9. Sadik B

    Sadik B Well-Known Member

    :) In short yes...
     
    Anthony Parsons likes this.
  10. Anthony Parsons

    Anthony Parsons Well-Known Member

    Sorry, missed that... thanks Sadikb... I will be changing to yours then soon.
     
    Sadik B likes this.
  11. Jaxel

    Jaxel Well-Known Member

    I've always thought putting a barrier to use through post count actually ENCOURAGES spam... not marketting spam, but user ******** post spam. When someone sees that they need X number of posts before they can do something, they will reach X number of posts by any means necessary. Even if it means making ******** posts that most members hate.
     
  12. Sadik B

    Sadik B Well-Known Member

    I do not disagree, that's why I set my limit very small. Maybe 5 posts or even 3. The thing is there is absolutely no other way to stop human spammers. I do not let people know how many posts they need in the error message, just telling them "They have insufficient posts". If someone asks by PC or profile msg, I tell them so usually genuine users understand and don't mind and it gets rid of ALL of the human spammers.
     
  13. novice

    novice Member

    This is great, thank you.

    Would you consider preventing links in status updates too?
     
  14. Sadik B

    Sadik B Well-Known Member

    Already does that... :)
     
    novice likes this.
  15. Anthony Parsons

    Anthony Parsons Well-Known Member

    Beautiful... uninstalled Borboles, installed this one. Great work Sadikb. Really a pleasure to see modders applying the same level of detail to mods as XF to the software, with full integration, not just this bit or that bit.
     
    Sadik B likes this.
  16. Sadik B

    Sadik B Well-Known Member

    Thanks Anthony... :)

    Though I have to admit, I am too lazy to be called a modder... :)
     
  17. M@rc

    M@rc Well-Known Member

    I just hope that you keep updating the mod once new versions of xenForo are released, xD

    I'm on my mobile, so tomorrow I'm going to install this mod @ my forum.

    Thanks!
     
  18. Sadik B

    Sadik B Well-Known Member

    Absolutely! Actually what I meant by "lazy" was to create Mods for other people which I don't use myself. This Mod I use on my own site so it definitely will get updated.
     
    Anthony Parsons and laztrix like this.
  19. M@rc

    M@rc Well-Known Member

    I've just installed this mod at my forum.

    @SadiKB - Will it be possible in the next update to allow internal links and disallow external links?
     
    Anthony Parsons likes this.
  20. Sadik B

    Sadik B Well-Known Member

    Hmmm, not too difficult. Ok I will add an option for you. :)
     
    Trekkan, Anthony Parsons and M@rc like this.
Thread Status:
Not open for further replies.

Share This Page