1. 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?

Discussion in 'General XenForo Discussion and Feedback' started by Rho Delta, Feb 1, 2013.

  1. Rho Delta

    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.
  2. Chris D

    Chris D XenForo Developer Staff Member

    Discourage their IP.

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

    James Well-Known Member

    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.
  4. Brandon Sheley

    Brandon Sheley Well-Known Member

    Something like this would work via htaccess..

    RewriteEngine On
    RewriteCond %{REMOTE_ADDR}
    RewriteRule ^.*$ /something.php [F]
    RewriteCond %{REMOTE_ADDR}
    RewriteRule ^.*$ /something_else.php [F]
    Jake Bunce likes this.

Share This Page