Only the altitude is limited to 500 meters above the takeoff point.
The distance can also be limited in DJI GO. To disable that limitation, turn off the "Main Controller Settings" --> "Enable Max Distance" setting in DJI GO. With that setting disabled, your Phantom will be able to fly until the remote controller disconnects.