You can file for a permanent or temporary restraining order online or in court in California. What form you file will depend on whether you are requesting a civil harassment restraining order, domestic violence restraining order, or an elder or dependent adult restraining order. An attorney can help you file and ensure the necessary information is included.