Hi Guys,

Id like to know if its possible to remove or block sites like http://www.onthesamehost.com?

I mean like htaccess?

If so can you please help me

Thank you for your time.

Could you explain more what you're looking? To block a virtual host, it's possible to use $_SERVER into a condition then header() to redirect to a blank page. But if you're looking to block a site in your computer, all you need is to edit the hosts file.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.