WebIRC block

The webirc block allows you to configure host spoofing for WebIRC / CGI:IRC gateways you trust, see WebIRC Support

This block was previously called cgiirc { }

Syntax
webirc { mask 1.2.3.4; /* ip or host mask */ type ; /* optional, webirc is the default */ password ; };

type is 'webirc' by default, 'old' is really old.

mask is checked against the client (the WebIRC or CGI:IRC gateway) that is trying to connect.

password is the webirc password

How to configure with method 'webirc' (recommended method)
In your CGI:IRC configuration file (cgiirc.conf) you set webirc_password to a good password. Then, in your unrealircd.conf you add a cgiirc block to allow this host and password.

Example
In your CGI:IRC configuration file (cgiirc.conf) you add:

webirc_password = LpT4xqPI5

Then, in your unrealircd.conf you add a webirc block:

webirc { mask 1.2.3.4; password "LpT4xqPI5"; };

How to configure with method 'old'
NOTE: This is not the recommended method since it has two disadvantages: this method will send the IP/host to spoof as a server password, meaning you cannot specify a server password as a CGI:IRC user. Additionally, access control is only IP-based and does not require an extra password like the 'webirc' method. In short, you probably should not be using this method unless you have a good reason to do so.

In your CGI:IRC configuration file (cgiirc.conf) you set realhost_as_password to 1. Then, in your unrealircd.conf you add a cgiirc block to allow this host.

Example
In your CGI:IRC configuration file (cgiirc.conf) you add:

realhost_as_password = 1

Then, in your unrealircd.conf you add a webirc block:

webirc { type old; mask 1.2.3.4; };