1
Jakobo
IP Address Range Ban
  • 2004/6/22 17:50

  • Jakobo

  • Just popping in

  • Posts: 61

  • Since: 2003/12/18


Hello, I am trying to put an IP ban in place for a provider that refuses to work with us to deal with a case of absuse of our website. The native regex I am trying to use is:

^213\.5\.([0-9]|[0-9][0-9]|10[0-2])\.[0-9]+

for the range 213.5.0.0 - 213.5.102.255

However, XOOPS will not take it, despite allowing for regular expressions in the IP. Any ideas about how to put this ban in place?

2
tl
Re: IP Address Range Ban
  • 2004/6/22 18:17

  • tl

  • Friend of XOOPS

  • Posts: 999

  • Since: 2002/6/23


Xoops does not work with range yet (hope someday it would be implemented). You would have to put it in htaccess with mod-rewrite (apache server)

3
Jakobo
Re: IP Address Range Ban
  • 2004/6/22 18:18

  • Jakobo

  • Just popping in

  • Posts: 61

  • Since: 2003/12/18


Ouch :\
Okay, thanks...

4
ackbarr
Re: IP Address Range Ban

Try this regex instead
^213.5.([0-9]|[0-9][0-9]|10[0-2])

5
ackbarr
Re: IP Address Range Ban

sorry after some playing with my regex tester (The Regex Coach), I came up with this:

^213.5.((10[0-2])|[0-9]{1,2})\.

6
Jakobo
Re: IP Address Range Ban
  • 2004/6/23 4:09

  • Jakobo

  • Just popping in

  • Posts: 61

  • Since: 2003/12/18


Unfortunately, I tried that, but XOOPS takes to the \. like a brick takes to water :( I think the regex functions in XOOPS are slightly limited. In doing so, it cleared out the ban list completely. (I guess that's better than banning the entire site).

:)

~Jakob

7
ackbarr
Re: IP Address Range Ban

ok - I added a bug report to the sourceforge bug tracker. You can track progress of it here:

https://sourceforge.net/tracker/index. ... roup_id=41586&atid=430840

8
intel352
Re: IP Address Range Ban
  • 2004/6/23 12:47

  • intel352

  • Module Developer

  • Posts: 824

  • Since: 2003/11/23


we need a full-fledged ip ban utility, plus something that would gather all known ips for a user and display the ips to an admin for easy tracking/bannage


i might start something along those lines soon

9
tl
Re: IP Address Range Ban
  • 2004/6/23 13:34

  • tl

  • Friend of XOOPS

  • Posts: 999

  • Since: 2002/6/23


It would be great if the IP ban window could be enlarged for those have a long list of banned IPs.

10
intel352
Re: IP Address Range Ban
  • 2004/6/23 13:43

  • intel352

  • Module Developer

  • Posts: 824

  • Since: 2003/11/23


i'm thinking the ip ban utility should be separate from the Main Preferences. that's how i'll develop it anyways

if i can do a decent job, maybe the XOOPS devs would incorporate into 2.1

Login

Username:
Password:

Lost Password? Register now!

Who's Online

62 user(s) are online (29 user(s) are browsing Support Forums)


Members: 0


Guests: 62


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jun 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits