.htaccess - reject all requests where header value is not "US" -


i'm trying block countries except people in usa trying access website. tried search country block rules .htaccess not find any. there simple line of code add in .htaccess file execute this?

this not possible. sufficiently sophisticated user can set headers whatever want, , ip address geolocation can spoofed or plain wrong.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -