: If these sub-domains do not exist and these requests are being handled by your site, you can safely block them using .htaccess. Try this: RewriteCond %{REMOTE_HOST} ^ftp.example.com$ [NC,OR]
If these sub-domains do not exist and these requests are being handled by your site, you can safely block them using .htaccess. Try this:
RewriteCond %{REMOTE_HOST} ^ftp.example.com$ [NC,OR]
RewriteCond %{REMOTE_HOST} ^mail.example.com$ [NC]
RewriteRule .* - [F,L] # manually added
Obviously replace example.com with your domain name keeping the [back-slash] before the . [dot] to properly escape.
Of course you can replace the RewriteRule with a redirect:
RewriteRule .* www.a-bad-place.com/ [R,L]
-- or --
RewriteRule .* www.house-of-mouse.com/ [R,L]
Replace a-bad-place.com or house-of-mouse.com with a site of your choice. (Just for humor of course- I am not advising redirecting an attack on another site. But if you do, I won't tell. [That's a joke son. Laugh. - Foghorn Leghorn] )
More posts by @Becky754
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.