• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

redirect IP address to external URL?

Chris D

XenForo developer
Staff member
#2
Discourage their IP.

It does random redirects along with other amusing things. Hopefully they'll get bored.
 

James

Well-known member
#3
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.
 

Brandon Sheley

Well-known member
#4
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]