What you want is this:
if ($role != 'Host' AND $role != 'Admin') {
exit('blabla');
}
But, it is better to put the allowed roles not directly into the condition but into an array, for instance.
$allowed_roles = ['Host', 'Admin'];
if (! in_array($role, $allowed_roles) {
exit('blabla');
}
The main advantage of this is that you can store the allowed roles somewhere else but in your logical code, e.g. in a database or in a config file. And you can easily change the list without touching your program's logic.
And, to explain why your code always keeps exiting: The right hand side part of your if ($role != 'Host' OR 'Admin')
is always true. That is because a non-empty string like 'Admin' will evaluate to true. That's why the part on the right hand side of the OR
is always true, and so the whole expression is always true (OR
means that only one of multiple conditions has to be true).