Blocking malicious domains pointed at a dedicated IP address

I found a situation today where someone had registered a domain and pointed it at one of my customer's websites who has a dedicated IP. By default, cpanel will allow any host header to bring up the website. It was drawing quite a bit of traffic to the server with visitors and crawlers to this fake website.

It could be blocked at the application level, but it's simple enough to do with .htaccess:

RewriteCond %{HTTP_HOST} !^www.example.org
RewriteCond %{HTTP_HOST} !^example.org
RewriteRule .* - [F]

The fake website was registered with a DNS provider and pointed at the dedicated IP on my server. I spotted it by seeing the fake HTTP host in the logs.

Comments

There is a decent probability that your site shares the ip location of another high movement site. In case you're facilitating your site on a mutual facilitating stage that makes not benefit a showing with regards to of allotting assets, your site could be moderate. Please Visit Our Website http://www.buyassignmentservice.com/fast-essay-writing-service

Download MSQRD APK Android App for your Smartphone. MSQRD APK Download Appis provided here with official links. http://www.msqrdappdownload.net/

Blogging can become difficult when ideas begin to dry out and creating content becomes more difficult. Learn how you can create new content with old content.
jiofi.local.html

There are many in this world suffering from diabetes. The fight must be wages to defeat this ailment. This poem outlines some action one is able to undertake that will aid in the bodily defenses against this aliment of diabetes.
eaadhaar.uidai.gov.in

If you own a blog you know the importance of keeping your blog fresh and your audience interested. It can be challenging to come up with blog posts that won't bore your visitors and is interesting enough to keep them coming back.
SBI HRMS

Pretty part of content. I just stumbled
http://write-my-essays.org/ninjaessays-com-review/ upon your weblog and in accession capital to assert that I acquire in fact enjoyed account your blog posts.

Wifikill is an amazing Android mobile application that helps you in disabling the other people from using your wifi network. you can get it from here http://www.wifikillapk.co/

Google Play Store is Google's official source for Android apps and downloads. ... Store · APK Downloader - How to Download APK files from Google Play Store.
https://playstoreapkdownload.org/

If you’ve ever struggled with any of the issues below, you’re in the right place. music production tips

First, I have a confession to make. I am very bad with managing my time. I have always had loads of stuffs to do, all piled-up until the very last minute.
?ssay writers

Writing an essay requires much preparation and concentration. An outline is the reflection of the writers' thoughts and imaginations. Outline is the main factor of the blueprint of an essay.
jimmy

Wishing you the best of luck for all your blogging efforts.This is my first opportunity to chat this website. I found some interesting things and I will apply to the development of my blog.
Best MBA college in Punjab