Exact localization of the epileptogenic zone (EZ) is the first priority for ensuring epilepsy treatments and reducing side effects. The results of traditional visual methods for localizing the origin of seizures are far from satisfactory in some cases. Signal processing methods could extract substantial information that may complement visual inspection of EEG signals. In this study, EZ localization is changed into a driver identification problem, and a nonlinear interdependence measure, the weighted rank interdependence, is proposed and used as a driver indicator because it can detect coupling information, especially directionality, from EEG signals. A proportional integral derivative (PID) controller is then explored, using simulations, to establish its suitability for seizure control. The seizure control we propose rests on identifying the EZ using nonlinear interdependence measures of directed functional connectivity. Two directionally coupled neural mass models are employed for simulation investigation. Two parameters can adjust the sensitivity and completeness of the weighted rank interdependence for different applications, and their effect is discussed in the context of neural mass models. Simulation results demonstrate that use of the weighted rank interdependence for EZ identification can be applied to different EZ types, and the approach achieves an overall identification rate of 98.84 % for several EZ types. Simulations also indicate that PID control can effectively regulate synchronization between neural masses.