Fork me on GitHub

IP/Username Ban  Bottom

  • Greetings, I'm currently getting my phpNuke site converted over to postnuke. So far I've managed to get most of what I need coverted over (Nuke69JumpShip was a huge help!). The only thing I currently can not find is an IP/username ban module.

    I was using one called Humpa Ban. Has anyone made this…cript for postnuke?

    It's small but I found it worked great. It allows one to add IPs and/or usernames to a ban list (you can also unban them) and when a banned person visits your site they get a message telling them that they are banned. Those who are banned can not access any areas of your site (all they see is the banned message). The site admin also gets an e-mail every time a banned member/ip visits your site.

    Currently I'm too new to postnuke (& PHP in general) to convert this. The structure of the files is like this:

    admin
    >case
    >>case.setban.php
    >links
    >>links.setban.php
    >modules
    >>setban.php

    images
    >admin
    >>ban.gif

    includes
    >data_ban.php

    ban.php

    You simply put

    Code

    include_once("ban.php");
    in your header or mainfile.

    data_ban.php is where the banned usernames and IP's are stored. I can send or post the code for setban.php and ban.php if anyone is interested, they are both small files.

    Is there currently anything like this for postnuke or is anyone interested in making this one work? It's small so I don't think it would be too much work for someone who is familiar with postnuke. I'm not sure how much of the code is still relevant (ie: global $user, $prefix, $dbi, $user_prefix, $adminmail?) or how to restructure it to work with the admin in postnuke...

    Any help or suggestions that you could offer would be great.

    Thanks!
  • Hmmm i'm looking for something like that too
  • Correct me if I'm wrong on this (quite likely, methinks), but any banned user IPs would probably be housed in the database, and not in one of the script files (as this would force the site admin to modify code to ban anyone).

    Also, as your site would have to load before it can check for the banned IPs, the banning might happen too late. I've always believed that any IP banning should be done via the server and not the script. Check with your host, as they might have easy-to-use IP banning tools already available for you to use.
  • I know, but in my case I don't want to ban an ip to all my subdomains too. What I would like is a ban on ip and/or domainname at the moment someone wants to register to my site i.e. i don't want certain domains and/or ip # to be able to register as a user. This should be done in postnuke not from the server. And yes I know there will always be people who get through that too.
  • Hey, there is a module for baning IP addresses or users. it was developed by http://portalzine.de. I belive you have to sign up as a supporter to get it but im not sure anymore. you might wanna check it out but for sure they have it, if they dont have it anymore e-mail me.

    cheeto :arrow:
  • They've taken all thier PostNuke modules down and wont produce any more modules for postnuke. All modules are being converted to their new system.

    --
    cyber_wolf
    www.bkbsolutions.com - My Zikula module development site.
  • 0 users

This list is based on users active over the last 60 minutes.