banning IPs...

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
Nissan_Ranger
Posts: 1
Joined: Sat May 14, 2011 5:29 pm

banning IPs...

Post by Nissan_Ranger »

Hello!

I'm running 1.5 and going to upgrade to 1.7. I have a question about banning IPs...

To ban an entire range, can I simply change the numbers in an entry from, say, %87.120.215.220% to %87.*.*.*%? Does the entry %8*.*.*.*% work? I'm getting spam from some unsecured server in spain (.es is Spain, I think) and I want to simply turn off the entire range...

T.I.A.,

N_R
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: banning IPs...

Post by Henrie »

Hello N_R,

Judging from this post viewtopic.php?t=3198 it is not implemented.
Also from what I see in the code it checks on full strings and does not take wildcards (but I am not a very experienced php programmer, so I could be wrong).

Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: banning IPs...

Post by Klemen »

Like Henrie said, it's not implemented. You can try using .htaccess to ban an IP range instead.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply