You can apply for both SSDI and SSI online through the Social Security Administration’s website.  Unfortunately, two out of three initial applications for SSDI are denied, so if you feel you might be entitled to SSI or SSDI benefits it is usually in your best interest to consult with an attorney before completing the application.