CodeCanyon

Country Detect & Redirect

  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
fibrefabim1 says
Purchased

Hi, I’m having a problem redirecting users with this script.

I am only able to redirect using the “International” setting. I have tried using UK and Europe and nothing redirects.

I have used my computer and got someone else to try the page but nothing happens. Are you able to assist?

Many thanks, Ian

5 months ago
Author
arl1nd arl1nd replied

Hi Ian

Sorry as I wasn’t able to reply you fast but I was in a vacation.

Please be aware of ordering the lines of code. Firstly you must set redirections for UK users, then international one comes at the end of code lines.

If that doesn’t works for you, please send me an email and I’ll try to give my help.

Thanks for purchase :)

5 months ago
  • Has been a member for 2-3 years
  • Bought between 100 and 499 items
  • Spain
mevedoGroup says
Purchased

Hello, I have many problems with spammer, who create accounts into my forums. So, I use your script to access only users from Germany, Austria, Spain and Switzerland.

CountryDetector::redirect("*", "http://google.com", array("DE", "AT", "CH", "ES"));

But I get every day new registrations from the spammers like this:

202.99.21.162 (CN) 159.224.130.96 (UK) 46.109.183.135 (LV) 87.205.199.47 (PL) and so on …

What could be the problem, that this users are not redirected by your script?

Regards Torsten

4 months ago
Author
arl1nd arl1nd replied

Hi Torsten

Well spammers don’t use regular browsers instead they use some kind of robots so with the redirection method only browser can understand the command
Location: http://google.com
Therefore they don’t follow this rule and they continue browsing your site. Another quick alternative is using “callback” method of CountryDetector.

Here is an example

// Create new function for handling with countries that are out of your selected area
function permissionDenied()
{
// Here is the code you can add to stop these visits
// One alternative is using die() method or exit()
exit("No permissions!");
}

CountryDetector::callback("*", "permissionDenied", array("DE", "AT", "CH", "ES"));

I hope this works for you. Please try it and tell me about the outcome.

4 months ago
Purchased
mevedoGroup mevedoGroup replied

Thanks … I will try it …

4 months ago
Purchased
mevedoGroup mevedoGroup replied

Thanks … your tip was right ;-) Since them just registrations from hacked servers, located in germany.

Regards Torsten

4 months ago
  • Has been a member for 3-4 years
  • Bought between 50 and 99 items
Aufnahmewerk says

Dear

I´m also interested in the file.

1.as I understand, I can make the following work. If I have a webpage in 3 different languages, I can edit the language to belonging IP-Adresses. Right?

fx. Language french IP-adresse: France + French islands >> all other countries are for english website

2.Is it hard to do that? I´m not a programmer. Do I have to enter all countries in the world??

3.How about aol, is it working too.

4. How fast is the redirect?

I´m waiting for your answer to buy your file pretty soon! Thanks

2 months ago
  • Has been a member for 1-2 years
  • Bought between 1 and 9 items
  • India
jaysnworld says

Hi,

I want the following function;

Suppose my site is www.abc.com: I want to redirect all visitors coming to www.abc.com to www.xyz.com execpt the visitor coming from India.

Only indian visitors should see my site and all other visitors from the world will be redirected to www.xyz.com

will this script work …...Kindly let me know… Thanks

24 days ago
Author
arl1nd arl1nd replied

Hi

Sorry for late response as I was busy during all these weeks.

Here is that function

CountryDetector::redirect("*", "http://myurl", "IN");

Where IN is country code to exclude from redirecting

I hope it works for you too :)

17 days ago
  • Has been a member for 0-1 years
  • Bought between 50 and 99 items
  • Thailand
rolexreplica says
Purchased

Hello , I want same Jaysnworld ask you , but I cannot used the folder I have purchase if you not explain me , the documentation do not help.

In short I don’t want United States country can see my website , what I need to do ? Thank you very Much

21 days ago
Author
arl1nd arl1nd replied

Hi

Sorry for late response as I was busy during all these weeks.

Here is that function

CountryDetector::redirect("*", "http://myurl", "IN");

Where IN is country code to exclude from redirecting

I hope it works for you

17 days ago
by
by
by
by
by