You may Riposte an arrow/bolt/thrown weapon from any distance as long as it hit you.
If you are using your Riposte to cover another person, then you must be in weapon distance as described on page 66 of the PDF ARB.
Remember also that your weapon must be out/free/in your hand to use a Riposte.