Osclass Support Forums
Osclass plugin support => Spam Solution Plugin => Topic started 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?
-
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.
-
What you mean geoip for htaccess?
-
Why not to google it?
https://fatcatservers.com/members/knowledgebase/999150/How-to-block-or-allow-countries-using-GeoIP-and-.htaccess.html
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
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
-
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?
-
Looks like you blocked access from 3 countries..if that is OK for you, then its ok.
-
If I let htaccess like that , my website don’t work anymore. It’s something wrong here 😞
-
@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.
-
@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.
-
@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 😞
-
Go to security > WAF > create firewall rule and block by country or continent .. see attached screenshot.
Cheers
-
Go to security > WAF > create firewall rule and block by country or continent .. see attached screenshot.
Cheers
Super . Tks a lot. I will try.
-
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 😣