SmartCJ Incoming Traffic GEO Block

zweiporn
Posts: 11
Joined: Tue Oct 25, 2016 12:15 am

SmartCJ Incoming Traffic GEO Block

Post by zweiporn »

Hi
i want to block incoming countries by GEO.
Smart CJ Count all incoming traffic and i want to block some countries by raw income.
I have test with htaaccess file in the include.php folder but was not working.
So only tier1 rest not counted by income.
possible? 8-) :?:

thanks a lot
admin
Site Admin
Posts: 37197
Joined: Wed Sep 10, 2008 11:43 am

Re: SmartCJ Incoming Traffic GEO Block

Post by admin »

Hi!

what do you mean saying "blocking" ?
do you want to redirect those visitors from those countries to another location?
Don't forget to run script update
zweiporn
Posts: 11
Joined: Tue Oct 25, 2016 12:15 am

Re: SmartCJ Incoming Traffic GEO Block

Post by zweiporn »

SmartCJ Shows every Income from every country at the trade.
I want that the trade script only track the income traffic for example from: DE, US, GB, IT, AT and some others from Tier1.
NOT the income from for example China, Bangladesh and those (Tier 2&3).
For Example:
Site 1 get traffic: 10 unique from Germany, 10 from USA, 10 from China and 10 from Bangladesh.
I want that the trade only shows the 20 from USA & Germany not the Bad Tier 2&3 Traffic China & Bangladesh.

Thanks
admin
Site Admin
Posts: 37197
Joined: Wed Sep 10, 2008 11:43 am

Re: SmartCJ Incoming Traffic GEO Block

Post by admin »

yes, you can add into common.php

if ($_SERVER['GEOIP_COUNTRY_CODE'] == 'CN') {
$_GET['dont_count'] = true;
}
Don't forget to run script update
zweiporn
Posts: 11
Joined: Tue Oct 25, 2016 12:15 am

Re: SmartCJ Incoming Traffic GEO Block

Post by zweiporn »

Thanks so much! i will test it! Awesome...
admin
Site Admin
Posts: 37197
Joined: Wed Sep 10, 2008 11:43 am

Re: SmartCJ Incoming Traffic GEO Block

Post by admin »

NP)
Don't forget to run script update
zweiporn
Posts: 11
Joined: Tue Oct 25, 2016 12:15 am

Re: SmartCJ Incoming Traffic GEO Block

Post by zweiporn »

hmmm it is not working. CJ is still tracking all countries.
An Idear what can be wrong ?

thanks a lot
admin
Site Admin
Posts: 37197
Joined: Wed Sep 10, 2008 11:43 am

Re: SmartCJ Incoming Traffic GEO Block

Post by admin »

sorry, should be

dont_count_in_trade
Don't forget to run script update
zweiporn
Posts: 11
Joined: Tue Oct 25, 2016 12:15 am

Re: SmartCJ Incoming Traffic GEO Block

Post by zweiporn »

Possible i have insert something wrong?
justpic.info/images4/b811/ScreenshotatJuni11183700.png
admin
Site Admin
Posts: 37197
Joined: Wed Sep 10, 2008 11:43 am

Re: SmartCJ Incoming Traffic GEO Block

Post by admin »

you can not use commas like that in PHP
the best way for you is just to copy\paste this part of the code
Don't forget to run script update
Post Reply