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

Fixed Make <a href="/?_debug=1"> as nofollow link

Chris D

XenForo developer
Staff member
#2
You can filter it down to just your own IP address and that is best practice.

PHP:
if ($_SERVER['REMOTE_ADDR'] == '127.0.0.1')
{
    $config['debug'] = true;
}
But, still, no harm in putting nofollow on the link, I think.
 

Moshe1010

Well-known member
#4
You can filter it down to just your own IP address and that is best practice.

PHP:
if ($_SERVER['REMOTE_ADDR'] == '127.0.0.1')
{
    $config['debug'] = true;
}
But, still, no harm in putting nofollow on the link, I think.
I did that first, but it's not that practical when you're with a laptop on the go. I use your add-on right now (haven't seen it first), so it's much better turning it on/off - thanks for that. We also made a condition to show the debug mode just for admins, but it's still running for everybody..
 
Last edited: