Another extension to keep you tinkering

As always please read the PDF Guide/Install Guide in full. The PDF contains allot more information than what is in this post.
W3C Compliant and Built with latest extension builder version 2.5.2
Demo
Due to large amounts of spam and abuse of the demos, all demos have now been removed. I do apologize for the inconvenience ... but i cannot afford to loose valuable bandwidth and cause server overload due to heavy spam on the demos. Genieuk does not earn any revenue from the Genieuk website and as such cannot afford to loose valuable resources. To test any of my extensions please just download and install in Web Builder and test the extension(s) this way.
Updates / Version History
Genieuk IP Ninja v1.0 -
First official release not an update
Genieuk IP Ninja v1.1 - 27/03/2010
Added search facility. Search by ID, IP Address & Page ID.
Added Help section to admin.
Added Page ID, please see admin help section to understand and use this feature. Also can be found in 8th post below.
Prettier (more user friendly) Install Wizard.
Genieuk IP Ninja v1.1 - 09/11/2010
Rebuilt with EB 2.5.2 to to work with WB7
Where can i download?
Click to go to download page on my site.
What this extension does?
With this extension you can block/ban any IP range or full IP from accessing your entire website or certain pages on your webiste.
Examples:
You want to block an ip range or full IP from registering on your website, (yes it works with any .php webpage!) perhaps a particular IP range is registering on your website (spam). Simply go to admin page and enter the IP range or full IP address you want to block/ban, then place the Genieuk IP Ninja extension on the webpage(s) page you don't want the the IP address to access and specify a redirect url you want to send the blocked/banned IP's in database to.
Or perhaps look for a list online with all known spammer IP addresses and add them to the database etc.
Or perhaps create a folder on your site with custom pages, so when that persons IP or IP range is found in database and they for example try to access signup page they are taken to a custom page that says something like:
Manual Registration Required
Your IP is within a specific range. Due to regular spam from this IP range, manual registration is required.
If you would like to register please follow the steps below
Contact Genieuk with your username and email address.
Genieuk will manually register you within 24 hours althou much sooner.
Genieuk apologises for any inconvenience this may cause for genuine users.
Perhaps you have a guestbook that is being spammed by spammers, again you could do like the above.
Perhaps you want to block a certain country IP range from accessing entire website or webpage. To do this you would
need to look online for that countries IP range then add IP(s) to database.
Or perhaps you have a guestbook that is being spammed by spammers, again you could do like the above.
Or perhaps you want to block a certain country IP range from accessing entire website or webpage. To do this you would need to look online for that countries IP range then add IP(s)/ranges to database.
Obviously you could use this extension for many more things.
What makes this extension useful is unlike IP blocking found in most web host control panels this extension allows you
to block IP's for just certain pages etc, as webhost control panel IP blocking scripts blocks that IP from accessing your entire
website. So you could redirect them to an entire different website or to a personal specific page on your website.
Features:
Admin Section -
Search Facility - Search ID, IP Address and Page ID
Help Section – Provides some helpful stuff
Add IP – Allows you to add an ip address/ip range to database
View/Edit – Allows you to view/edit a specific IP address where you can update if needed
Delete – Will delete the specific IP address from database
Web Builder Extension Properties -
Database Details – Requires your database details to connect to database
Page ID – Please see admin help section for full explanation of this feature
Redirect URL – URL to redirect user to if IP/IP range is found in database
Requirements:
MYSQL
PHP 5/6 ( v4 should work althou not tested)
Is it easy to install?
Yes, the script comes with a simple one stage process install wizard. You simply enter your mysql details hit submit and the
script will create the database and the relevant tables etc. There is one file edit but this is only for your admin page so you can specify your database details to use admin page.
Is it easy to use?
Yes, It has been developed with the most novice users in mind. A one page admin that allows you to add, edit, view, delete and search IP addresses. Simple huh? . You can even change the name of the admin page and place it anywhere you want. You could simply to keep it within your site design etc, place it in an iframe and place in an admin directory etc. Choice is yours!
Does each page i place the extension on use the same IP database?
Yes, if you for example add 10 IP addresses to the database then any page you place the extension on with the same Page ID will block/ban the IP addresses from the specific webpage.
Does it come with a simple admin panel?
Yes, you will find the installation instructions in the PDF Guide which comes with a self install wizard. After installation you can
change the genieuk_ip_ninja.php web page name that is your admin page where you can add, view, edit and delete IP's. Everything has been designed to keep it to a one page admin panel to make it easier for you to manange. The default admin page is called genieuk_ip_ninja but the script dynamically gets the page name so you can change the name of the admin webpage and place it in any folder, for example with any other admin pages you have on your website without any worry of conflict etc.
Does the admin page come with a login feature?
No, currently it does not althou maybe in the future i may add such functionality. Reason for currently not adding is majority of web builder users just password protect there admin directory so nobody can access any of there admin pages unless they know the username and password. Plus Web builder comes with built in tools to password protect pages.
How do i block an IP address / Part of an IP address / Range?
Please see PDF Guide for full illustration.
IP Ranges Lookup etc.
A good website to find IP ranges for countries etc can be found here:
http://ipinfodb.com/ip_country_block.php
Simply enter List Type (output type): Simple List
Choose Country, hit generate and it will give you ip's for that country which you could block.
Some pictures so you can see it in action.
Obviously there are tons of things you can use this extension for but below i am just giving an example on the sort of things you can/could do if you want.
One Stage Install Wizard! - Enter database details, hit Install and done!
Perfect for those who are not mysql database savvy.

This picture has the extension installed on it, my IP or part of my IP is not found in the database so it shows the signup page

Now i added my IP to database so now when i try to access the same page as above i am instead now redirected to this page (specified by you). Obviously it can be any webpage/website you want. This is just a personal touch for a more professional look etc.

This is the admin homepage

When i click on Add IP i am shown:

When i click on View or Edit i am shown:

When i want to delete an IP wheter from the homepage or when viewing a particular IP i am asked to confirm if i want to delete. Javascript must be enabled for it to ask you to confirm.

This picture shows me search results based on my search query

I have used this system on my website for a few weeks now with one or two problem users and it has worked succesfully on stopping them registering multiple accounts etc, now they don't bother as they have to manually register with me, so far so good, i use it as a way to show people i will not tolerate there mailicious, nuisance behaviour. Obviously what you use it for is down to you.
Thanks for looking and please leave feedback, comments, suggestions etc.
Enjoy - All the Best Genieuk