Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - spreadp

Pages: [1]
1
Trade Pulse Support / Block Countries from TP
« on: October 25, 2016, 01:48:13 AM »
Hello,

i want to block certain countries. TP should not accept traffic from china for example.
I'll use htaccess to handle this, or is there a function in TP?

Which files do i have to block to only disable logg incomming traffic?
I want continue send china traffic via out.php, but don't log them for incomming traffic!

If i only block the ssi_in.php the script still continue logging chin traffic. Which files are missing here?
Code: [Select]
<IfModule mod_geoip.c>
 
SetEnvIf GEOIP_COUNTRY_CODE CN BlockCountry
SetEnvIf GEOIP_COUNTRY_CODE IN BlockCountry
SetEnvIf GEOIP_COUNTRY_CODE ID BlockCountry

<Files "ssi_in.php">
Order allow,deny
allow from all
Deny from env=BlockCountry
</Files>

</Ifmodule>

regards

Pages: [1]