Technical advances and institutional changes in the electric power industry have resulted in a constantly increasing penetration of distributed generation (DG) integrated with distribution networks. For the connection of new DG installations to the networks a variety of factors have to be taken into account, including technical requirements imposed by utilities to ensure that the DG doesn't adversely affect the operation and power quality of the networks. The use of power electronics at the front end of many DG types poses harmonic control requirements for their insertion into the grid. The attention is focused on the harmonic emissions. This paper introduces a harmonic based strategy for the best location and size of DG sources integrated with distribution network. Also, this paper introduces a new index called unified harmonic index (UHI) that is based on the values of voltage harmonic distortion, current harmonic distortion, and hosting capacity. The procedure is used to rank the available locations of DG and then examined optimum capacities of DGs in the ranked sites based on both the UHI and harmonic limit consideration in IEEE-519. The strategy is applied to an actual Egyptian feeder to indicate the best location and size of DG connected to the feeder as a preliminary study for the distribution network in Egypt for the near future as planned to allow the DG to be inserted.