Forcefully rewrite certain hostnames

These are old archives. They are kept for historic purposes only.
Post Reply
petrbena
Posts: 2
Joined: Tue Oct 22, 2013 12:55 pm

Forcefully rewrite certain hostnames

Post by petrbena »

Hello,

Is there a way to forcefully change a hostname (cloak, vhost) of user who is connecting from certain IP? On our network we have a webchat, that is running on same server as one of our nodes, I would like to replace the IP address of localhost which all users who use it get with something like "webchat"

I noticed there is a vhost block in configuration, but that requires username and password for it to work, is there any way to just "replace hostname" so that everyone who would have that IP as hostname would instead get the "webchat" string as hostname?

Thanks
petrbena
Posts: 2
Joined: Tue Oct 22, 2013 12:55 pm

Re: Forcefully rewrite certain hostnames

Post by petrbena »

* snip *

Moderator Note: We don't discuss or support src code changes. You should use a vhost block in the config file or services instead.

~katsklaw
Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Re: Forcefully rewrite certain hostnames

Post by Stealth »

If your webchat supports it, use the cgiirc block. No source changes necessary.
Post Reply