How to block domain which is pointed to my server ip... and are not mine
Hello
I have a server and some one has pointed his site to my server ip... and if that ip is share it will show default cpanel page on that pointed domain if that ip is dedicated to only one user it will show my client site data on that pointed domain .... Is there any way to stop this or block domains which has nothing to do with my server.... ???
Like we can block ip from CSF is there something we can do to block site which are pointed to my server ip and are not myne...
-
This isn't something blockable by CSF/etc. Just let Apache do its job - change the default page to something else so any site that is not configured on your server but is pointed to it will show whatever you want. This is an excellent time to learn about Internet porn. 0 -
If ip is shared then i have no problem because it will show default page if ip is dedicated to one user then default page will not show it will start showing client site on that ip.... and if any one point his site to that dedicated ip it will start showing my client site on pointed domain... There must be some way to keep default page of cpanel even if the ip is dedicated to only one user... 0 -
You just need to create a default vhost for each dedicated IP on your server, so any request for a site that isn't configured will return something else. 0 -
[quote="amoloo7, post: 1690942">There must be some way to keep default page of cpanel even if the ip is dedicated to only one user...
Yes, by default a dedicated IP address will display the default contents of the account assigned that IP. You can customize the Apache configuration file by adding a default VirtualHost with the standard document root as the first VirtualHost for that IP if you want to see the default cPanel page for that IP. Thank you.0
Please sign in to leave a comment.
Comments
4 comments