Strictly, it's not allowed (assuming you are UK based). You are supposed to be available for work and, if you're studying, you're not available. If you get caught or someone dobs you in, the penalties are severe.
However, you may qualify for income support as a student which would qualify for you for housing and council tax benefit but Job Seeker's Allowance is a no-no.
If you want to be above board, then ask at your local Citizens' Advice Bureau and will help you with your entitlement.
Cheers
Whirls