Index Labels

Configure htacess to block IPs entire country

. . No comments:

​Blocking an entire country stops most traffic coming from their IP ranges.

This method isn’t 100% because some countries have slightly overlapping IP ranges.
Alternatively, you can select a single country and DENY access from all other
countries to completely block access from the rest of the world. Due to overlapping
border ranges, selecting some neighbors is recommended such as US and CA as a pair.
More can follow:
configure non-www to www
## Redirect from non-www to www (remove the two lines below to enable)
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

No comments:

Post a Comment

4sharingAZ. Powered by Blogger.

About Metro

Follow us on Facebook