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

Now our system become more secure and have strong security for detected.Many students help writing a cv on security threads because it much needed.The DNS also help in this point of view.

Found really a knowledgeable post on blocking malicious domains pointed at a dedicated IP address. It is useful for everyone who use internet for their profession work. Teachers, students, learners and writers of our Australia’s top leading assignment assistance providers consultancy Secure Assignment Help - http://www.secureassignmenthelp.com/ where our experts also use internet for providing online assignment help and career guidance to Australian students. Glad to find such an amazing website and want to bookmark it for getting more useful details like this. Thanks.

That's very interesting, quite a rare situation but sounds like you handled it like a champ! icariin 60

Everywhere you go, you hear nothing but fine things very more or less WordPress. What is WordPress and how can you construct your web have an effect on upon this special software? WordPress is an right to use source blogging platform. jiofi mifi

This post is exceptionally easy to peruse and acknowledge without forgetting any points of interest. Extraordinary work! You finished certain dependable focuses there. I did a pursuit regarding the matter and discovered about all people will concur with your blog. help in essay

Nice blog, the article you have shared is good.This article is very useful. My friend suggest me to use this blog.
Paramedical college in dehradun

Students learn best when they actively participate in the lesson or that they feel valued when teachers encourage them to share their knowledge with their peers.
Best school in Hisar

Creating a blog website can be one of the most powerful decisions you can ever take on as well as it comes to your issue. It acts furthermore a central hub where you can profit most of the traffic which can slant into leads and even sales! Check out 2 enormous assist of creating a blog website here. You obtain not indulgent to miss this! mahabank.co.in

Thank you for such an important article. I truly acknowledge for this awesome data.. mangahere

All writers will agreement that article announcement is a must if you throbbing to manufacture a presence and a profile on the subject of the web. But writing articles is after that an art, and one that can be developed again period. If you are invincible nearly article sponsorship and dock't yet made a begin, make one now.
Car Title Loans

There is a decent probability that your site shares the ip address of another high movement site. In case you're facilitating your site on a common Write My Essay For Me facilitating stage that makes not complete a decent showing with regards to of allotting assets, your site could be moderate.