I would like to give my mods ability to Quick Deny without going into WHM.
Just need script I guess.
Is it possible to block from website
-
- Junior Member
- Posts: 9
- Joined: 04 May 2008, 15:54
Re: Is it possible to block from website
Hi,
Sorry for bumping this topic, but the API really is something I would love to see and even pay for.
We would like to integrate it into our site so that a user that creates a ticket for an unreachable website goes through a wizard on our website. It would check whether the user's IP address is currently blocked in the firewall he wants to log a ticket for.
If it does, it would be nice if we can proactively inform the client, so he doesn't need to create a ticket.
For his first 5 blocks for instance, we would allow him to auto-unblock through that same wizard, indicating a reason why he believes his IP was blocked. After his 5 garce unblocks have been used, he would be required to rais a ticket nevertheless.
Either way - this kind of scenario would allow us to lower the level of tickets we receive, and increase customer self management abilities.
So yes - we would LOVE to see such an API ourselves!
Sorry for bumping this topic, but the API really is something I would love to see and even pay for.
We would like to integrate it into our site so that a user that creates a ticket for an unreachable website goes through a wizard on our website. It would check whether the user's IP address is currently blocked in the firewall he wants to log a ticket for.
If it does, it would be nice if we can proactively inform the client, so he doesn't need to create a ticket.
For his first 5 blocks for instance, we would allow him to auto-unblock through that same wizard, indicating a reason why he believes his IP was blocked. After his 5 garce unblocks have been used, he would be required to rais a ticket nevertheless.
Either way - this kind of scenario would allow us to lower the level of tickets we receive, and increase customer self management abilities.
So yes - we would LOVE to see such an API ourselves!
Re: Is it possible to block from website
As already mentioned, you should use the CLI as all commands must be run as root. If you want to run the CLI commands from an account that isn't a superuser you should use the Linux sudoers facility. You can store information on blocks using the inbuilt BLOCK_REPORT facility.