Page 1 of 1
Is it possible to block from website
Posted: 31 May 2008, 12:19
by stevember
I would like to give my mods ability to Quick Deny without going into WHM.
Just need script I guess.
Posted: 01 Jun 2008, 14:31
by MattsHosting
does configServer have an API ?? i dnt think it does but could be good , but shud be easy to make , ill post a script in a few deys , :P
Posted: 04 Jun 2008, 22:09
by stevember
Cool that would be awesome.
Posted: 05 Jun 2008, 10:40
by chirpy
You can only add rules to iptables as root, so you need root access. For that you can use the csf CLI.
Posted: 08 Jun 2008, 13:30
by stevember
Is there not a way to add to the deny file?
Or maybe htaccess file.
I got mods I'd like to add IP but bot give control panel or root.
Re: Is it possible to block from website
Posted: 21 Sep 2010, 11:36
by flexin
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!
Re: Is it possible to block from website
Posted: 02 Oct 2010, 09:28
by chirpy
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.