A far-right German politician’s website that let pupils denounce teachers for being too political was knocked offline within hours of its launch by what its creator said was a hacker attack.