6.0.0-beta1
7/20/25

[#14396] Ban hosts by IP
Summary Ban hosts by IP
Queue Horde Framework Packages
Type Enhancement
State Rejected
Priority 1. Low
Owners
Requester viktor (at) szepe (dot) net
Created 06/11/2016 (3326 days ago)
Due
Updated 06/13/2016 (3324 days ago)
Assigned
Resolved 06/13/2016 (3324 days ago)
Milestone
Patch No

History
06/13/2016 12:45:32 PM viktor (at) szepe (dot) net Comment #5 Reply to this comment
Thank you.

Could you add an option for it to the official Horde source?

I wouldn't modify my pear-based installation.

06/13/2016 10:53:25 AM Jan Schneider Comment #4
State ⇒ Rejected
Reply to this comment
You already pointed at the code in question, you can change to return 
the IP address instead.
06/13/2016 10:07:26 AM viktor (at) szepe (dot) net Comment #3 Reply to this comment
Excuse me for not mentioning: I would use Fail2ban to ban these IP-s.

remoteHost() outputs *hostnames* into the error message.
2016-06-12T18:23:10+00:00 NOTICE: HORDE Guest user is not authorized 
for Mail (Host: proxy.szepe.net). [pid 463 on line 324 of 
"/home/web/public_html/pear/pear/php/Horde/Registry.php"]
Could you help me to get the original IP?

06/13/2016 08:38:57 AM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
This message doesn't even include a host name. Beside that, why would 
you want to ban such a use (as the ticket summary implies)? And 
finally: banning users isn't anything that Horde should do (beside 
blocking failed login attempts). IP blocking should happen on the 
server level.
06/11/2016 03:04:26 PM viktor (at) szepe (dot) net Comment #1
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ Ban hosts by IP
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ No
State ⇒ New
Reply to this comment
Would it be possible to ban hosts? Now Horde logs only the hostname 
which is ambiguous unlike I address.
"NOTICE: HORDE Guest user is not authorized for Horde"

Could add an option to log only IP address?

https://github.com/horde/horde/blob/7ba9e0a92a1ddc8d95d4447e6256cafcadc50ff1/framework/Core/lib/Horde/Registry.php#L2529-L2543

Thank you.

Saved Queries