1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Semprot Deny Country 1.1.2

Deny users from some countries from registering / posting threads.

  1. semprot

    semprot Active Member

    semprot submitted a new resource:

    Semprot Deny Country Registration - country, deny

    Read more about this resource...
     
  2. semprot

    semprot Active Member

  3. Rho Delta

    Rho Delta Well-Known Member

    Does this like check their domain like .hk or .ru or something?
     
  4. semprot

    semprot Active Member

    No it denies visitors which are from some countries (based on their IP addresses :) )
     
  5. Rho Delta

    Rho Delta Well-Known Member

    Could you add domain options too? Anything that is .ru or .hk has no business being on my site.
     
    bobs409 likes this.
  6. semprot

    semprot Active Member

    Can you give more details?
    Do they have ****@****.ru and *****@****.hk as their e-mails ?
    Or do they post ****.ru and *****.hk websites on your forum?
     
  7. Rho Delta

    Rho Delta Well-Known Member

    In their email addresses.
     
  8. semprot

    semprot Active Member

    Have you tried : admin > users > Banned emails ?
    You can add
    *.ru and *.hk

    Or if it still doesn't help, you can get IP of the spammer post, and check the country name here : http://www.ip2nation.com/
    And you can ban the country name using this add on :)
     
  9. Rho Delta

    Rho Delta Well-Known Member

    I didn't realize you could do that!
     
    semprot likes this.
  10. bloh

    bloh Active Member

    @semprot Working with 1.3.2? Thanks. :)
     
  11. semprot

    semprot Active Member

    This far, yes :)
     
  12. Allpar Dave

    Allpar Dave Member

    I'm not sure it's working, I've gotten a few spammers from black-listed Pakistan. Any way to check to see if it's working, or see if IPs are in its own geolocation database?
     
  13. semprot

    semprot Active Member

  14. semprot

    semprot Active Member

    1. The IP database was very old, it was February 2014 (last resource update), i have updated it on latest version, and i have added instruction to update the ip database by your own (please check the FAQ section).
    2. Now you can test this resource using a test IP (please check the FAQ section).
    :)
     
    Claudio likes this.
  15. ibenick

    ibenick Active Member

    I just downloaded and installed this yesterday and spam from Pakistan is still getting through. Any thoughts on how to fix that?
     
  16. Allpar Dave

    Allpar Dave Member

    A belated “thank you,” semprot.
     
    semprot likes this.
  17. FredC

    FredC Well-Known Member

    This is the error produced when trying to create a new thread..

    Code:
    ErrorException: strpos(): Empty needle - library/Semprot/DenyCountry/ControllerPublic/Forum.php:39
    Generated By: VonDoom, 3 minutes ago
    Stack Trace
    #0 [internal function]: XenForo_Application::handlePhpError(2, 'strpos(): Empty...', '/*****/*****/...', 39, Array)
    #1 /*****/*****/*****/community/library/Semprot/DenyCountry/ControllerPublic/Forum.php(39): strpos('united states', '')
    #2 /*****/*****/*****/community/library/XenForo/FrontController.php(347): Semprot_DenyCountry_ControllerPublic_Forum->actionCreateThread()
    #3 /*****/*****/*****/community/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #4 /*****/*****/*****/community/index.php(13): XenForo_FrontController->run()
    #5 {main}
    Request State
    array(3) {
      ["url"] => string(72) "https://doberman-chat.com/community/forums/admin-forum.100/create-thread"
      ["_GET"] => array(0) {
      }
      ["_POST"] => array(0) {
      }
    }
     
  18. semprot

    semprot Active Member

    1. Can you give me a screenshot of your country setting?
    2. Did the spammer pass registration / posting thread / both?
    3. Can you tell me the IP of the poster & IP of the user during registration (both could be same / different).

    What did you fill on "Country Name" ?
     
  19. FredC

    FredC Well-Known Member

    I didnt fill out anything.. This was an error created when trying to create a thread with this plugin enabled. Disabling the plugin brought the ability to create new threads back to normal..
     
  20. semprot

    semprot Active Member

Share This Page