Author Topic: Block Countries from TP  (Read 7703 times)

0 Members and 1 Guest are viewing this topic.

Offline spreadp

  • Newbie
  • *
  • Posts: 1
    • View Profile
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
« Last Edit: October 26, 2016, 11:20:40 AM by spreadp »

Offline ip0li

  • miSearkXD
  • Administrator
  • Hero Member
  • *****
  • Posts: 1952
    • View Profile
    • Premier Сasual Dating Real-life Girls
Re: Block Countries from TP
« Reply #1 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!