Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Block ip address
#12
Oh fair enough. So just store the list of IP addresses in either a text or xml file and compare it to that, then exit the PHP script immediately if it matches one of the IPs. I wondered if the htaccess method was in some way more elegant (since I've used the previous method on CUsers before), but that seems to work. I'll code it soon.

Also, when you say match a pattern, are you saying that the IP addresses stored by this plugin should allow for wildcards too?
Reply


Messages In This Thread
Block ip address - by Prog - 2014-03-10, 23:15:53
RE: Block ip address - by shawn_a - 2014-03-10, 23:44:14
RE: Block ip address - by Prog - 2014-03-11, 00:05:45
RE: Block ip address - by Prog - 2014-03-11, 00:33:24
RE: Block ip address - by shawn_a - 2014-03-11, 00:13:42
RE: Block ip address - by shawn_a - 2014-03-11, 04:22:18
RE: Block ip address - by Kolyok - 2014-03-15, 01:08:59
RE: Block ip address - by Angryboy - 2014-03-15, 02:35:36
RE: Block ip address - by shawn_a - 2014-03-15, 02:59:18
RE: Block ip address - by Angryboy - 2014-03-15, 03:52:27
RE: Block ip address - by shawn_a - 2014-03-15, 04:42:54
RE: Block ip address - by Angryboy - 2014-03-15, 06:03:56
RE: Block ip address - by shawn_a - 2014-03-15, 06:10:27



Users browsing this thread: 1 Guest(s)