*

marian ion

Stop Visits from Africa
« on: February 01, 2023, 05:27:49 PM »
Hi people. I want to ask , how it’s posible to stop spam from Africa , I have over 50 ads / day with spam accounts. How can stop this visits and accounts? And one more thing. All listings are reported like spam , I don’t know from who or why. Can anyone help me?

*

MB Themes

  • Best Answer
  • Re: Stop Visits from Africa
    « Reply #1 on: February 01, 2023, 06:40:28 PM »
    That can be complicated. Try to check geoip plugin for htaccess.
    2nd issue can be that just bots are crawling all links including nofollow one.
      To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

    *

    marian ion

  • Best Answer
  • Re: Stop Visits from Africa
    « Reply #2 on: February 10, 2023, 09:12:28 AM »
    What you mean geoip for htaccess?

    *

    MB Themes

  • Best Answer
  • Re: Stop Visits from Africa
    « Reply #3 on: February 10, 2023, 12:58:39 PM »
    Why not to google it?
    https://fatcatservers.com/members/knowledgebase/999150/How-to-block-or-allow-countries-using-GeoIP-and-.htaccess.html

    Code: [Select]
    GeoIPEnable On
    # Put countries to deny here     
    SetEnvIf GEOIP_COUNTRY_CODE CN DenyCountry 
    SetEnvIf GEOIP_COUNTRY_CODE KR DenyCountry 
    SetEnvIf GEOIP_COUNTRY_CODE KP DenyCountry 
     
    Allow from all 
    Deny from env=DenyCountry   

    Code: [Select]
    GeoIPEnable On
    # Put countries to allow here     
    SetEnvIf GEOIP_COUNTRY_CODE US AllowCountry 
    SetEnvIf GEOIP_COUNTRY_CODE CA AllowCountry 
    SetEnvIf GEOIP_COUNTRY_CODE MX AllowCountry 
     
    Deny from all 
    Allow from env=AllowCountry   
      To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

    *

    marian ion

  • Best Answer
  • Re: Stop Visits from Africa
    « Reply #4 on: February 11, 2023, 04:04:35 PM »
    NOW THIS IS MY .HTACCESS :

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    GeoIPEnable On
    # Put countries to deny here     
    SetEnvIf GEOIP_COUNTRY_CODE BJ DenyCountry 
    SetEnvIf GEOIP_COUNTRY_CODE NG DenyCountry 
    SetEnvIf GEOIP_COUNTRY_CODE ZA DenyCountry 
     
    Allow from all 
    Deny from env=DenyCountry

    it's ok?

    *

    MB Themes

  • Best Answer
  • Re: Stop Visits from Africa
    « Reply #5 on: February 11, 2023, 07:37:44 PM »
    Looks like you blocked access from 3 countries..if that is OK for you, then its ok.
      To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

    *

    marian ion

  • Best Answer
  • Re: Stop Visits from Africa
    « Reply #6 on: February 12, 2023, 12:08:53 AM »
    If I let htaccess like that , my website don’t work anymore. It’s something wrong here 😞

    *

    MB Themes

  • Best Answer
  • Re: Stop Visits from Africa
    « Reply #7 on: February 13, 2023, 10:18:56 AM »
    @marian
    That's your job to identify what code should be put there and make sure that plugin (htaccess plugin) is enabled.
    This forum is not right place to discuss htaccess content and configuration.
      To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

    *

    Wiz

    • ****
    • 162 posts
  • Best Answer
  • Re: Stop Visits from Africa
    « Reply #8 on: February 21, 2023, 04:44:30 PM »
    @OP

    Why don't you stop the abusive/unwanted country traffic at the edge before it hits your server? Server-side hacks can only do so much and you risk negatively impacting the performance of your stack.

    Switch to Cloudflare and block countries, bots, user agents etc. with a couple of clicks.

    *

    marian ion

  • Best Answer
  • Re: Stop Visits from Africa
    « Reply #9 on: February 22, 2023, 10:45:38 AM »
    @OP

    Why don't you stop the abusive/unwanted country traffic at the edge before it hits your server? Server-side hacks can only do so much and you risk negatively impacting the performance of your stack.


    Switch to Cloudflare and block countries, bots, user agents etc. with a couple of clicks.

    I have cloudflare, but I don’t know what to do there 😞

    *

    Wiz

    • ****
    • 162 posts
  • Best Answer
  • Re: Stop Visits from Africa
    « Reply #10 on: February 22, 2023, 03:43:55 PM »
    Go to security > WAF > create firewall rule and block by country or continent .. see attached screenshot.

    Cheers

    *

    marian ion

  • Best Answer
  • Re: Stop Visits from Africa
    « Reply #11 on: February 22, 2023, 05:13:40 PM »
    Go to security > WAF > create firewall rule and block by country or continent .. see attached screenshot.

    Cheers

    Super . Tks a lot. I will try.

    *

    marian ion

  • Best Answer
  • Re: Stop Visits from Africa
    « Reply #12 on: February 24, 2023, 02:55:11 PM »
    Go to security > WAF > create firewall rule and block by country or continent .. see attached screenshot.

    Cheers

    I created rules in cloudflare and no result. Again and again visits and spam listings from Africa 😣