So I'm developing for a system that checks if the person is of age (adult) to access a blocked site. If they are or they are an unfiltered user (administration) then we allow them to view the site. So once I do all that validation, I'm curious on how I redirect the user to openDNS with the bypass code already populated so the user can just click Bypass.
This is what I have so far:
<?php
include_once('config.php');
$url = (isset($_GET['url']) ? $_GET['url'] : '');
if(isset($_POST['submit']))
{
$filter = new Filter();
$errorMsg = ErrorMsg::getInstance();
$filter->setBarcode($_POST['barcode']);
$filter->setNaughtyUrl($url);
if($filter->validate() && $filter->isFiltered())
{
// valid barcode
header('Location: http://bpb.opendns.com/a/' . $url);
}
else
{
$error = $errorMsg->get_error();
}
}
?>
I pass the url to it, but I'm feeling like I need to pass the bypass code in someway... I just don't see any documentation or where I should look when using their API. I want the bypasscode field that they provide on the form to autopopulate with the string I have recorded down.
Thanks for any direction.