.htaccess - Blocking a City or Region from website -
i know easy block individual ip address or whole country viewing website via htaccess, need block city in uk , have visitors blocked city redirected external url.
here code have htaccess file, have been searching everywhere on how block uk city or region. find range of ips specific uk city? or there better way of doing this?
# ban user ip <limit post> order allow,deny allow deny (an individual ip address or range) </limit> errordocument 403 http://www.google.com
you have use iptolocation script(http://www.ip2location.com/) , can check city or region after blocking city or region website.
Comments
Post a Comment