Jul 05, 2009, 09:07 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Search via SMF or Google: modx forums all of modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
News:Donate to MODx: Donations
Pages: [1]   Go Down
  Print  
Author Topic: Banlist module + IPbanning plugin  (Read 3405 times)
0 Members and 1 Guest are viewing this topic.
Boby
Full Member
***
Posts: 155



WWW
« on: Sep 04, 2006, 02:39 PM »

Hello @ all,

This is the first module and the first plugin that I write for MODx  Grin

The module is a simple banlist feature, where you can manage a list of IPs and email addresses that you want to ban from using your webpage (or whatever else you want). The email banlist is so far just as is, I haven't altered the WebSignup snippet but you can do it.
I've also wrote the plugin for preventing access to the homepage for visitors using a banned IP address.

Screenshots

How to install:
  • Extract the archieve and make sure it has at least two PHP files.
  • Create a new module called "Banlist" and add content of banlist.module.php file to it.
  • Run module and click for installation. This will create two new database tables and a new field to the existing system settings table.
  • Enable banning and start adding IP and email addresses.
  • In case you do not have a custom unauthorized page, create a new one and activate it from the managers system configuration settings.
  • Create a new plugin called "IPbanning" and add content of banip.plugin.php file to it, select the "OnWebPageInit" system event.
  • The plugin will block access of visitor with banned IPs to the homepage, to also block access to the manager simply activate the "OnBeforeManagerLogin" and "OnManagerPageInit" system events. I suggest you do so!

I hope you'll like it Wink

Boby

* modx-banlist-v1.zip (15.54 KB - downloaded 264 times.)
Logged

...my Photo Gallery on Flickr...
Mark
Coding Team
*
Posts: 3,250


Ditto Developer


WWW
« Reply #1 on: Sep 04, 2006, 03:33 PM »

Awesome! Great work!
Logged

davidm
MODx evangelist
Marketing & Design Team
*
Posts: 7,026


Software is like sex, it's better when it's free !


WWW
« Reply #2 on: Sep 05, 2006, 02:52 AM »

Yeah this is another stone that will help us build MODx powered community websites, thanks !
Logged

.: nodeo.net : Pour un web libre, moderne et ouvert ! :: david-molliere.net : Suivez en "live" mes expérimentations et billets sur les CMS et autres applications web :.

*** Forums modxcms.fr Participez ŕ l'élaboration du site MODx francophone ! ***

! Nouveau !  En live, ne manquez pas les news de modxcms.fr sur Twitter   ! Nouveau !

MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accčs pour les utilisateurs finaux.

Config : Apache 2.2.8 - MySQL 5.0.67 - PHP 5.2.8 | Debian 4.0 (Etch)

Réalisations sous MODx : | pargade-notaires.fr | soleil.info | gican.asso.fr | michelez-notaires.com | amadom.gerondicap.com | jocelyne-violet.net
doze
Coding Team
*
Posts: 3,662


....Boom!


« Reply #3 on: Sep 05, 2006, 05:10 AM »

Great work Boby! Looks very good, Thanks!
Logged

New MODx wiki! Please help up with documentation efforts! || Old Wiki
Boby
Full Member
***
Posts: 155



WWW
« Reply #4 on: Sep 05, 2006, 05:31 AM »

Thank you guys for the comments Cheesy

I hope somebody might find it useful, specially those who run great websites and are targeted by spambots. You can ban an entire IP range.

Hope to find a nicer way to show the IP and email ban lists for a future version so you don't have to scroll up and down through the whole page. Maybe add some tabs like almost all pages in the MODx manager, what do you think? Just need to figure out how MODx is doing it so I don't need to write all the HTML/CSS stuff again.

Boby
Logged

...my Photo Gallery on Flickr...
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!