| | #1 | |
| Groupie Join Date: Dec 2005 Location: California, USA
Posts: 40
![]() | IP banning by CIDR value How much of a hassle is it to come up with a PHP function of some kind that can check an IP to see if it's within a specified CIDR range? Say you get something like this: Quote:
I know I could just input that into iptables instead and be done with it, but all I want to do is stop the fool abusing our site from being able to register ( and therefore post ) and I'd rather not fill up the firewall with a bunch of crud.
__________________ To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. "The past was erased, the erasure was forgotten, the lie became truth." -- George Orwell, 1984 | |
| | |
| | #2 |
| Forum Guru ![]() Join Date: Sep 2005 Location: Athens, GA
Posts: 10,256
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Well, me being clueless and not knowing what a CIDR value is, I might not know how to answer your question...what is a CIDR value? Either way, if you want to ban all 68.240.x.x IP's and therefore stop registrations from that IP, you can do that...probably by putting 68.240.*.* into the ban list.
__________________ To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. - Professional vBulletin Skins |
| | |
| | #3 |
| Lurker Join Date: Mar 2009
Posts: 1
![]() | chk this |
| | |
| | #4 |
| Rookie Join Date: Mar 2009
Posts: 18
![]() | That really wont stop someone who wants to attack you. If you really want to ban them, I would suggest some type of cookie ban. And make sure you use a very unique identifier for the cookie so it's harder to delete from their browser and come back. Banning an ip is only going to make them go look for a proxy. To be honest it's impossible to fully ban someone from a server if they know what they are doing. Most spammers have multiple computers, browsers, and ips. But I wish you the best of luck.
__________________ To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. - Have an To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. ? Maybe it is To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. ? Come check us out! |
| | |
| | #5 |
| Member Join Date: Mar 2009
Posts: 59
![]() | Use CSF firewall and you can ban single IP's or whole countries. (This is for Unix Systems) it even add's itself to cPanel/WHM if you have it. |
| | |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Banning free email addresses | Joy | Handling Problem Members | 13 | 12-20-2006 07:43 PM |
| Banning Racism!!! (need some help) | RamBone | Handling Problem Members | 25 | 08-06-2006 10:24 PM |
| Banning popular members | cpvr | Handling Problem Members | 42 | 06-19-2006 01:52 AM |
| Banning IP in Cpanel | AlexUK | Handling Problem Members | 3 | 04-26-2006 10:02 PM |
| Banning ip message | demojames | Handling Problem Members | 6 | 03-19-2006 04:51 AM |
