Throw 403 in a plugin [duplicate]

Is there any limitation/issue setting/thowing 403 the usual PHP way?

header('HTTP/1.0 403 Forbidden');
die('You are not allowed to access this file.');

Leave a Comment

tech