Osclass Support Forums

Osclass plugin support => Spam Solution Plugin => Topic started by: Lamanuncios on February 01, 2023, 05:27:49 PM

Title: Stop Visits from Africa
Post by: Lamanuncios 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?
Title: Re: Stop Visits from Africa
Post by: MB Themes 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.
Title: Re: Stop Visits from Africa
Post by: Lamanuncios on February 10, 2023, 09:12:28 AM
What you mean geoip for htaccess?
Title: Re: Stop Visits from Africa
Post by: MB Themes 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   
Title: Re: Stop Visits from Africa
Post by: Lamanuncios 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?
Title: Re: Stop Visits from Africa
Post by: MB Themes 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.
Title: Re: Stop Visits from Africa
Post by: Lamanuncios 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 😞
Title: Re: Stop Visits from Africa
Post by: MB Themes 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.
Title: Re: Stop Visits from Africa
Post by: Wiz 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.
Title: Re: Stop Visits from Africa
Post by: Lamanuncios 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 😞
Title: Re: Stop Visits from Africa
Post by: Wiz 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
Title: Re: Stop Visits from Africa
Post by: Lamanuncios 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.
Title: Re: Stop Visits from Africa
Post by: Lamanuncios 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 😣