HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Tips/Tricks/Mods (http://www.howtoforge.com/forums/forumdisplay.php?f=29)
-   -   domain block similar to shelluser_blacklist (http://www.howtoforge.com/forums/showthread.php?t=53227)

defconjuan 27th June 2011 01:28

domain block similar to shelluser_blacklist
 
Is there a file similar to shelluser_blacklist for domains?

Let's say I want to prevent the creation of sites (i.e. how2forge.com, twitter.com, google.com, microsoft.com, apple.com) from the ISPConfig interface. What's the best way to achieve this? (I realize I could create them under an account that I never use, but that seems excessive. I don't need to load that many sites, I just want to block them from being used anywhere in ISPConfig.)

falko 27th June 2011 10:38

You can use the Domain module. It lets the administrator specify a list of domains for use in ISPConfig.

defconjuan 27th June 2011 18:17

Appreciate the quick reply. I enabled the module, read the domain module sections in the ISPConfig 3 manual (that I bought :) ), and I trolled the forums a bit on the subject.

It sounds like to accomplish shelluser_blacklist like functionality I have two options using the Domain Module:

Option 1) Add a list of blacklisted domains, one-at-a-time, to my admin account in which case no one would see them (but, the admin user would on every screen where they could add a domain - ie. Email Domain Add, Site Add, Shell User Add, FTP User Add, etc.).

Option 2) Create a dummy admin/holding account where I would add each of these blacklisted domains to, one-at-a-time, to this holding account so it won't show elsewhere.

Am I correct?

till 28th June 2011 12:09

You can never block all external domains like this simply because you can not add all these millions of domains to a blacklist. For that resaon, you normally use the opposite approach for such a problem as it is implemented in the domain module. So you dont blacklist domains, instaed you whitleist domains and assign them to your clients by using the domain module.

defconjuan 30th June 2011 07:23

Sorry, for not being clear. I'm not trying to checks if a domain already exists nor do I want to populate a table with millions or even hundreds of records.

It's the very same rational as the shelluser_blacklist file: There are user names that you want to block for obvious reasons. The same seems logic seems rational with domains/sites/email domains. Obviously anyone creating a site Microsoft, Dell, or HowToForge is bogus. Or say I were the Champions League and I was opening the ability for fans to create fan sites. I would want to block them from creating 20-100 sites with a domain_blocklist like:

manchesterunited.tld
fcbarcelona.*
chelseafc.*

Anyhow, by the two replys I received, it doesn't sound like this or anything similar exists.


All times are GMT +2. The time now is 05:15.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.