redirect IP address to external URL?

Rho Delta

Well-known member
Is this possible? I have some trolls that I want to send to another website instead of just IP banning them.
 
Discourage their IP.

It does random redirects along with other amusing things. Hopefully they'll get bored.
 
The alternative may be to create an add-on using the init_dependencies hook that checks visiting IPs and redirects them.

Something like this you may wish to do on a server level though, that way the IP is redirected immediately, before even coming into contact with XenForo.
 
Something like this would work via htaccess..

Code:
RewriteEngine On
 
RewriteCond %{REMOTE_ADDR} 241.52.25.23
RewriteRule ^.*$ /something.php [F]
 
RewriteCond %{REMOTE_ADDR} 234.22.25.23
RewriteRule ^.*$ /something_else.php [F]
 
Top Bottom