I get thousands of server requests from "clients.your-server.de"
i use these code in htaccess to block bots and spiders, but i did not know if the two first lines of code will work ...
Is it even possible to block a server request using the hostname? Is the code correct? How do you block hostnames?
Deny from clients.your-server.de
Deny from your-server.de
<IfModule mod_geoip.c>
GeoIPEnable On
SetEnvIf GEOIP_CONTINENT_CODE SA Block
SetEnvIf GEOIP_CONTINENT_CODE AF Block
SetEnvIf GEOIP_CONTINENT_CODE AN Block
SetEnvIf GEOIP_CONTINENT_CODE AS Block
SetEnvIf GEOIP_CONTINENT_CODE OC Block
SetEnvIf GEOIP_COUNTRY_CODE CN Block
SetEnvIf GEOIP_COUNTRY_CODE RU Block
SetEnvIf GEOIP_COUNTRY_CODE KP Block
SetEnvIf GEOIP_COUNTRY_CODE IR Block
SetEnvIf GEOIP_COUNTRY_CODE SA Block
SetEnvIf GEOIP_COUNTRY_CODE A1 Block
BrowserMatchNoCase "Baidu" Block
BrowserMatchNoCase "Ahrefs" Block
BrowserMatchNoCase "Yandex" Block
BrowserMatchNoCase "MJ12bot" Block
BrowserMatchNoCase "MegaIndex" Block
BrowserMatchNoCase "DotBot" Block
Deny from env=Block
</IfModule>