Here are some by IRFCA
The first and foremost thing to remember is that a moving train can be deadly.Always use your common sense, and be alert and aware of your surroundings. Try not to be alone when railfanning, especially in lonely or remote areas -- take a friend along. You and your friends should carry mobile phones, or otherwise, note the location of the nearest communications facilities, in case of any emergency.You must have appropriate permits or permission from IR officials for your presence in any restricted areas, yards, sheds, inside locomotives, etc., and also for all your photography and video activities where these are restricted.Railway tracks are VERY DANGEROUS places! If at all possible, stay away from the tracks!tracks are...
more... very uneven and tricky places to walk in. Do not depend on hearing a train coming towards you. Trains can be deceptively silent. You must check frequently up and down the tracks and watch for trains. Sometimes drivers give a friendly toot of the horn when approaching bystanders, but you cannot count on this. Also do not count on indirect indications such as vibrations in the rails, the 'singing' of the catenary or telephone wires, etc. Fog and rain muffle sounds and make it difficult to determine their direction.avoid spending any time at all on the tracks when visibility is poor.if you are caught between two moving trains on adjacent tracks, it is best to lie down flat in the space between the tracks sitting at the door of the train or hanging out of the doorwayholding on to the hand rails is very unsafe.