Can you rubber stamp on glass?

i’m interested in using regular rubber stamping equipment to stamp glass but I’m afraid it will rub off.