GUK IP NINJA-ADMIN-SELF INSTALL-MYSQL-SEARCH+ UPDATE 27/3/10

In this section you can share self-made extensions with other users of WYSIWYG Web Builder.
There is a dedicated section for commercial extensions.
Post Reply

Do you like this extension ?

Yes
8
100%
No
0
No votes
 
Total votes: 8

genieuk
 
 
Posts: 129
Joined: Fri Mar 06, 2009 2:10 am

GUK IP NINJA-ADMIN-SELF INSTALL-MYSQL-SEARCH+ UPDATE 27/3/10

Post by genieuk »

Greetings my fellow friends!

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.

Image

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

Image

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.

Image

This is the admin homepage

Image

When i click on Add IP i am shown:

Image

When i click on View or Edit i am shown:

Image

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.

Image

This picture shows me search results based on my search query

Image

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
Last edited by genieuk on Sun Jan 16, 2011 1:37 am, edited 21 times in total.
User avatar
me.prosenjeet
 
 
Posts: 1268
Joined: Mon Dec 24, 2007 1:50 pm
Location: Lucknow
Contact:

Post by me.prosenjeet »

genieuk,
Nice extension indeed...can we block IPs or IP range from visiting the full site at one go with this....instead of single pages?
Have you written this script?
I hope it is possible to rename/remove/change " Genieuk IP Ninja" written all over the extension, I would not like my clients to see that.
Check the new Chat GPT and Malware detect extensions at the link below

Check my WB Extensions
Check my WB Templates
---------------------------------------------------------
www.Lucknowwebs.com
genieuk
 
 
Posts: 129
Joined: Fri Mar 06, 2009 2:10 am

Post by genieuk »

Hi,

You can block the entire website or just certain webpages. The choice is yours. To block an ip or ip range from entire website or webpage just add the ip to the database and add extension to the webpage(s) you want to block. Maybe a masterpage will do it in one go, would have to check.

Yes i have written this script myself.

No you cannot change the Genieuk IP Ninja. The admin file is not part of the actual extension and is a self contained file.

You can change it if you want but you will have to manually edit the code.

Regards,
Mathew
FredericP
 
 
Posts: 71
Joined: Thu Apr 26, 2007 5:10 pm
Location: Bourges (France)
Contact:

Post by FredericP »

Nice extension, thx for your effort, but why a MySQL base is necessary ? It woul'd be more simple with a text file ?
[url]http://Peyronnin.fr[/url]
genieuk
 
 
Posts: 129
Joined: Fri Mar 06, 2009 2:10 am

Post by genieuk »

FredericP wrote:Nice extension, thx for your effort, but why a MySQL base is necessary ? It woul'd be more simple with a text file ?
Hi,

I have only worked with flat files once before and personally find it much easier working with databases plus i personally find i got much better control. Also if someone uses the extension to for example block a list of spammy IP's etc then a database would be more sufficent in terms of performance and reliability.

Plus it has a one step process self install wizard that will create the database and tables for you.

I made it to be as novice friendly as possible without penalizing on reliability and performance.

Plus to my knowledge when reading/writing to a flat file it gets locked whilst this process happens which would cause problems.

Plus the members system in web builder now have mysql optionally and i feel people are becoming confident with mysql, plus there are tutorials on here and video tutorials all over the net althou with the one step process self install wizard there should not be any worries or needing to go into pypmyadmin etc.

Thanks for the comment :)

Regards,
Mathew
FredericP
 
 
Posts: 71
Joined: Thu Apr 26, 2007 5:10 pm
Location: Bourges (France)
Contact:

Post by FredericP »

Thx very much for your detailled answer, you are right.
I have never use SQL database for now, because, if i have to change my host provider, i don't know how to transfer dabase contents from one host to another. Instead, a text file is easiest to move.
Maybe in the future, if an extension creator can handle a very easy way to manage SQL database, maybe i will change my mind ;-)
[url]http://Peyronnin.fr[/url]
genieuk
 
 
Posts: 129
Joined: Fri Mar 06, 2009 2:10 am

Post by genieuk »

FredericP wrote:Thx very much for your detailled answer, you are right.
I have never use SQL database for now, because, if i have to change my host provider, i don't know how to transfer dabase contents from one host to another. Instead, a text file is easiest to move.
Maybe in the future, if an extension creator can handle a very easy way to manage SQL database, maybe i will change my mind ;-)
Actually you can backup your database very easily.

Login to your Cpanel, Look for something along the lines of "MySQL Database" click it, the next page will then show all your databases, you should have a button that says "Backup", click it and it will back up the database.

Also to restore a database usually on the same page where you backup the database there is usually a link to say restore a backed up database.

Thought i would say this for you to take a look at incase you never noticed it. There is no need to go into PHPMYADMIN or anything to backup/restore database.

Regards,
Mathew
genieuk
 
 
Posts: 129
Joined: Fri Mar 06, 2009 2:10 am

UPDATE - 27/03/2010

Post by genieuk »

UPDATE - 27/03/2010

Hi,

An update has been made with new features.

NOTE:
If you have not used this extension before the upgrade then you DO NOT need to upgrade after install as the official extension has been updated to relfect update


Updating is very easy, please download latest zip file from my website where instructions/upgrade information is included in zip. Please see first post for download link.

What Happens in Update:

To keep things simple there is an upgrade wizard that will add a new column to the geo-ip table. It is the same as the normal self install wizard but it obviously upgrades instead. As for users who already use this extension you should not get any problems/errors as the geo-ip database already exists. You simply enter the same database details as you did on the first install hit the upgrade button and database would have been altered.

What's New?

Added a search facility to admin panel where you can search ID, IP Address and Page ID.

Added a admin help section.

Modified install wizard, new prettier install wizard.

Added Page ID:
A new Page ID field in admin section, the Web Builder extension itself also has been updated with the Page ID field. Previously when you added an IP address to the database any webpage that has the Genieuk IP Ninja extension installed on it will simply block/ban all IP addresses that was found in database from acessing the webpage.

With Page ID this now extends and gives you more control. When you have added IP addresses to the database unless specified they are given a default Page ID of 0. In Web Builder when you place the extension on the web page you MUST specify a Page ID (default; 0). The Page ID must be numbers only and no longer than 11 characters. If for example you have two IP addresses in the database one with a Page ID of 2 and another with a Page ID of 6 and in Web Builder you specify a Page ID of 2 on a webpage, only IP addresses with a Page ID of 2 will be looked up in the database from that webpage. By specifing Page ID's for webpages you have greater control of which IP addresses should be looked up in database for a specific webpage allowing you to block/ban only certain IP addresses from accessing that particular webpage and not all IP addresses in the database.

Please read the What's New and Upgrade information in zip file.

Any questions please post.

Hope you like the improved update. Please leave comments, feedback, suggestions or anything else that springs to mind, much appreciate it.

All the Best
Mathew
Last edited by genieuk on Sun Mar 28, 2010 6:15 pm, edited 1 time in total.
genieuk
 
 
Posts: 129
Joined: Fri Mar 06, 2009 2:10 am

Post by genieuk »

Any more comments, feedback, suggestions etc? if you have installed let me know how you found the install process and if you find the extension useful.

Images in first post has been updated to reflect new admin panel including additional images. Install and Upgrade wizard is now also more user friendly looking.

Thanks
Mathew
Post Reply