Page 1 of 1

Block Visitors by Country - redirect to website page

PostPosted: 06. February 2014 18:01
by UartigZone
Hello.

I'm looking for a plugin / script they block IPs from alot of country but i don't think its possible.

The script should ban ALL ips from the country but it should redirect to a page on my website but only so they can go to that site.

MySQL, PHP script, nothing of this can do it.

It will be so awesome if someone will help me find a script like this.

Thanks,
Mathias
- Sorry for bad english.

Re: Block Visitors by Country - redirect to website page

PostPosted: 06. February 2014 18:15
by Altrea
Hi,

We don't support XAMPP for live, production or public accessible environments so there is no need for such a script.
btw: blacklisting scripts by country ip are very ineffective. One single open proxy server in one of the valid countries and every user can bypass your "protection"

best wishes,
Altrea

Re: Block Visitors by Country - redirect to website page

PostPosted: 06. February 2014 22:49
by Nobbie
UartigZone wrote:I'm looking for a plugin / script they block IPs from alot of country but i don't think its possible.


No, it is not "impossible", but it is quite a bit of work and (most important) it is useless. Why useless? Because users can use "proxies", which will request your site instead of requesting it directly. For example, if you want to block users from USA, a user simply can configure his browser to use a proxy which runs in Germany. That means, for your blocking script it seems, that this user from USA is not from USA, but from Germany. So your site does not block the request, because it is coming from Germany. You and your script have no chance to recognise, that in reality this request comes from the USA. Youre script does not receive the original Users IP, but the IP of the proxy.

Do you still think, that your "concept" is a good concept?

If you want to grant access only for certain users, there is only one way that works correctly: authorization via userid and password. Nothing else.

Re: Block Visitors by Country - redirect to website page

PostPosted: 07. February 2014 03:10
by gsmith
No it's no impossible and I'd argue that it is all that difficult. It can be bypassed as stated above but the user would have to suspect he/she's being blocked because of his/her country and then have the wherewithal to bypass it.

If you send back a "Sorry but your country is blocked from this site" they are obviously going to know, but if that error document just looks like a MySQL error you get when your CMS cannot connect to MySQL how are they going to know different short of looking at the headers which the average user would not do.

mod_geoip is what you need and it's not difficult to set up.