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

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.
 
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:
Back
Top Bottom