Tag Info

New answers tagged


You can put this script into you're .htaccess file on root directory of you're website: ## block IP access ## order allow,deny deny from deny from allow from all ## block IP access ## In this case make all IP Address unless and to access you're website


the rule to activate in mosecurity can be found in base_rules/modsecurity_crs_21_protocol_anomalies.conf That would block access to the website when accessed through server IP.


Here is an .htaccess option for you: RewriteEngine On RewriteCond %{HTTP_HOST} ^10\.0\.11\.101$ [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [R,L] ...to redirect and... RewriteEngine On RewriteCond %{HTTP_HOST} ^10\.0\.11\.101$ [NC] RewriteRule .* - [F,L] ...to block. Obviously, you will need to change the IP address and domain name to suit your ...


From a security perspective, it is a smart move. Most websites with heavy traffic will have a CDN used somewhere. So any attempted DOS or DDOS attack will simply dissipate away through the CDN servers and won't reach the user site. However, if a user is aware of the site's IP address, he or she can directly fire an attack at the IP and bring down the ...

Top 50 recent answers are included