Is it possible to block from website

Locked
stevember
Junior Member
Posts: 7
Joined: 31 May 2008, 12:16

Is it possible to block from website

Post by stevember »

I would like to give my mods ability to Quick Deny without going into WHM.

Just need script I guess.
MattsHosting
Junior Member
Posts: 9
Joined: 04 May 2008, 15:54

Post 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
stevember
Junior Member
Posts: 7
Joined: 31 May 2008, 12:16

Post by stevember »

Cool that would be awesome.
chirpy
Moderator
Posts: 3537
Joined: 09 Dec 2006, 18:13

Post by chirpy »

You can only add rules to iptables as root, so you need root access. For that you can use the csf CLI.
stevember
Junior Member
Posts: 7
Joined: 31 May 2008, 12:16

Post 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.
flexin
Junior Member
Posts: 1
Joined: 21 Sep 2010, 11:31

Re: Is it possible to block from website

Post 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!
chirpy
Moderator
Posts: 3537
Joined: 09 Dec 2006, 18:13

Re: Is it possible to block from website

Post 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.
Locked