How to Block my Website in China

Hi , is there any way to block my website in asian countries like china, pakistan etc.,

It’s possible, but unless there is a good reason for it, sounds like something of questionable ethics to me.

Thanks john, i get a continous spam from specific countries, thats the reason to block visitors

What sort of spam? Email, or form entries like contact forms or comment forms?

For either it might simply be better to invest in a good spam filter (if you don’t have one already).

You should block this at at layer 3 (firewall) and not layer 7 (the website). Do you have access to your server or firewalls?

If it’s a linux server running iptables, modify this script to your needs http://www.okean.com/antispam/iptables/iptables.html

That script is blocking port 25, you’ll want to modify it for ports 80 and 443.