Suspend by reason

SeLLeRoNe

Super Moderator
Joined
Oct 9, 2004
Messages
6,643
Location
A Coruña, Spain
Hi,

i was thinking last night about a thing.

Should be very nice (ofc is just my opinion) to have a way to choose why a domain/account has been suspended.

Example:

1/2 fixed reason - Band over, disk space over
3/5 custmoizable reason - example, the user didnt pay, suspend user and the panel ask the reason

And da will check the reason and point the domain to a defined directory (ex. suspend/band suspend/disk suspend/custom1 ...)

I really think should be a nice feature for customize the panel and let the user know why the account is suspended, or, at least, dont have always the same message.

Thanks

Regards
 
The problem is that the whole world will know, not just the user. And in some jurisdictions (the United States is one example) depending on the message, that could be illegal. For example, in the U.S. you're not allowed to let anyone but the debtor know that someone owes you money. Which is why late bill notices are no longer sent in pink envelopes or on pink paper in window envelopes.

It might also not be prudent to tell the world the user doesn't have enough space or bandwidth to run the website.

I certainly wouldn't use this if it existed, though your mileage may vary.

Jeff
 
Our html page for suspended accounts says:

Account was blocked because of one or several of the following reasons:
1. reason 1...
2. reason 2...
3. reason 3...

For details contact us by phone or email.
 
We use something like this:
Code:
<html><head><title>Suspended Domain</title></head>
<body><center>This site is suspended.<br>
If this is an error and this is your domain then please contact<br>
NoBaloney Internet Services<br>
<a target="_blank" href=http://www.nobaloney.net>www.nobaloney.net</a><br>
Big Enough to Serve You • Small Enough to Know You!<br>
(877) NoBaloney<br>
</center></body>
</html>
Jeff
 
Well i understand your point Jeff, but, that doesnt mean that is impossible to do, i mean, for who that need one page for all just use same page for all reason, and for who can/want use different page (or for example a color) that let just the user know what is going on would be nice, at least for me.

Regards
 
I'm not sure, cause I've never done anything before, but you can try to search and find a module if it's necessary or do it with mod_rewrite. The idea is, when a request comes for a suspended domain, apache checks a list or several lists to find out the reason why domain is suspended, then it shows a certain html page.



Or a PHP/Perl script with a DA plugin (or self standing admin interface) would do that for you. It means you put a script into directory for suspended domains, and it do all necessary checks and shows whatever you'd like.
 
The problem is that im not a programmer :) And would be nice if the reason should be put directly from panel when you click on suspend user..

Well, was an idea.. nevermind :)

Regards and thanks everyone for suggestions
 
It's not quite that simple; it's not just a matter of inserting a line with a reason; there would have to be a separate file for each reason. DirectAdmin would have to decide in advance how many reasons. I just don't see how to do it easily in a control panel. Perhaps someone else does.

Jeff
 
Well actually yes should be easy with a if i suppose, if reason 1 use suspend/directory1 if 2 use 2.. and like this, am i wrong?
 
Hello,

Feature implemented:
http://www.directadmin.com/features.php?id=1264

Just compiling now, then will upload to the pre-release section.

The difference between the request and how I did it is that I used SetEnv, and not directories.

So to use the feature, you'd create either an index.php or index.shtml.

Sample shtml:
HTML:
suspended because of <!--#echo var="reason" -->

or

<!--#if expr='"$reason" = "billing"' -->
The reason is billing
<!--#else -->
Not billing... something else.
<!--#endif -->
or sample php:
PHP:
<?
$reason=getenv("reason");
echo "Reason is $reason";
?>
John
 
John,

Where "reason choice" is to be stored?
In /usr/local/directadmin/data/users/username/user.conf of a suspended user?

Info on how the selection of "reason choice" will work is to be determined.

So we still won't be able to do a "reason choice"?
 
Definitely nothing that should ever be displayed to the public.
 
Actually yes, but my original idea was have the ability to suspend some user for a pre-defined reason, example.. site suspended for server mantainence so when i need/have to make a server wide mantainence for some kind of bug/problem i should put all users on suspend status with a specific suspend page, ofc, will not look like a suspend to customer but a page that describe what is going on.

Hope that i was more clear now.

Regards
 
Definitely nothing that should ever be displayed to the public.

You probably do not need it then. But in some cases, a page might have some codes displaying reason choice, meaning nothing to usual visitors, and helping to stuff of a hosting company.
 
Info on how the selection of "reason choice" will work is to be determined.
Sorry, it's already been determined ;) Just forgot to remove that sentence from the versions entry.
It's stored in the user.conf file as the variable:
suspended_reason

it's also stored in the domains/domain.com.conf file, same variable name, as a domain can be suspended by the User, with reasons (the list is filtered for reason depending on where he's at)
The method for choice is next to the suspension button. It's a dropdown list. If no option is selected, it will leave the "reason" blank, which is fine (also used for backwards compatibility).
Else, you'd pick the reason, and suspend away.

As for if the reason is shown or not, that's entirely up to the Reseller/Admin. DA does not make that decision for you.
If their /home/reseller/domains/suspended/index* page checks the "reason" env variable, they can do with it what they want.
By default, it will be like it has always been, and will not "show" the reason, but the variable will be there for the page to use, if set.

John
 
Back
Top