Question: is lying about your age illegal?
Answer: No you cannot get in legal trouble for faking your age on the internet. You can get in trouble for lying on an affidavit which is what you are providing when you are REQUIRED to provide an age for verifying who your are or that you are old enough to view content.