Rules and regulations made by society

Hello I want to know about the laws of indian court if someone is making their own rules and regulation in the society and fully paying attention and all the formalities they all are doing regarding engagement and divorce. In short , yha kch log society ke apne khud ke niyam or kanoon laga chuke h agar kisi ko divorce lena h to uska jurmana fix kiya hua h , sagai todni h to uska jurmana fix kiya hua h etc etc , we all know ek trah se divorce se bachne ka shadiya tute isse bachne ka better option h girls k liye but agr rules h to sabke liye barabar ho gareeb k liye bhi ameer k liye bhi but aisa nhi hota h...gareebo ko dabaya jaata h , pese walo se kch kaha bhi nhi jaata...so me apse ye janna chahta hu indian penal court ke according aisa koi case ya law h ki ap apne khudke society k is trah ke kanoon nahi bana skte jisse aam aadmi ko koi preshani ho..so aisa koi case law wagerah h ki ap indian laws ke alawa koi or kanoon banane par koi case ya FIR ki ja sake koi dhara to please bataiyye... Hope for a positive reply. Thank you.