[Tutorial] How to deny access for files with certain extension or folder in OpenLiteSpeed/CyberPanel

Trying to block the /vendor folder for whmcs and neither .htaccess code is working.