Script Pulse

Trade Pulse => Trade Pulse Support => Topic started by: spreadp on October 25, 2016, 01:48:13 AM

Title: Block Countries from TP
Post by: spreadp 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
Title: Re: Block Countries from TP
Post by: ip0li on November 15, 2016, 04:39:46 PM
Hi, my apologies for late reply I skipped this post :(

This function is not available in TP so please use htaccess.

THNX!