xBan Navigation: About | Installation - B2 | Installation - WordPress | Installation - Standard | User Manual
Download: xBan for B2 | xBan for WordPress | xBan Standard

What is xBan?

xBan is an easy-to-use and easy-to-install and really an easy-to-everything script for PHP that bans people from your site. Rather than basing the banning criteria on IP addresses (which can often change), it works based on visitor's hostnames, which only change when a person changes ISP's.

E.g. you have someone you want to ban, and you know from your logs that their hostnae is adsl-65-67-148-36.dsl.hstntx.swbell.net. You simply ban dsl.hstntx.swbell.net, so that when they change IP addresses, their hostname will stay the same.

This method also allows you to ban geographical regions, e.g. placing a ban on belrs2.nsw.optusnet.com.au will ban everyone on the Sydney North Shore who uses OptusNet.

What are its features?

  • Easy-to-use GUI
  • Runs on SQL
  • Review banned hits
  • Password bypass
  • Custom "banned" pages

The xBan engine and Graphical User Interface (GUI) are all located in the one file, which you can choose the name of so that you and only you know the URL to log into the file. In the GUI you control all the passwords, banned pages and banned hostmasks. You can also review which hostnames have hit the ban list, and when. It uses SQL to store all its data, so it is virtually instant and no details ever get trunkated.

Because of the nature of xBan, you may end up banning legitimate visitors. If this is the case, they can enter a bypass password that lets them into the site anyway. The user's computer & the script then "remember" eachother, so each time they come back after entering the password from that computer, they will always get in.

The page that is displayed when someone is banned is completely customisable, so you can make it fit in to your whole site's overall design. It also doesn't redirect the URL of the page, so the visitor will have no way of finding the engine.

Why use xBan?

xBan allows you to deny access to your personal site to people you don't want visiting, and is much more powerful and customisable than simply banning IP addresses one by one via the cpanel or a .htaccess file.

It also allows you to ban spammers from your site - as any blogger knows it's a real pain in the butt to get rid of spam bots, but this tool can make life easier.

xBan's one and only original use was to stop my ex-girlfriend from reading my blog (hence the name, ex-ban).

Where can I download it?

You can download it using the links at the top of this page, under the heading "downloads".

Important notes

xBan is a personal project of mine. It's not the kind of project that needs working on all the time, so releases will be very few and far between. I also don't have much spare time, but if you have troubles, I'm always more than happy for you to contact me.