disable website via shellscript

Discussion in 'General' started by reSh, Dec 20, 2020.

  1. reSh

    reSh New Member


    i want to disable a website via shellscript. i have customers on my servers who do not update their software (wordpress). the unpatched version is used to send spam sometime.

    my plan now is to monitor mailq and if there is a frequent occurrence of a domain to block it and send me and if necessary the customer a mail.

    how can i disable a website via shellscript?
  2. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    You could remove the sites-enabled symlinks to act on the web server. If you want the fact reflected in the ui, you would have to use the remote api to disable either the website or the client (assuming this is on ispconfig).
  3. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    A good idea but I am more incline if this suggestion goes to feature request where email spamming website can be automatically disable with email notification.

Share This Page