Mobile app version of vmapp.org
Login or Join
Becky754

: 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]

@Becky754

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] )

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Becky754

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme