add CiviCRM extensions to local site
Sometimes CiviCRM sends you to an absolute URL, even though most of the time you navigate through links with relative URLs.

CiviCRM uses the base URL in your civicrm.settings.php file to build the absolute URLs, and it caches that base URL for performance.  I suspect that your situation is either:


the base URL in the settings file still points to the live site, or
the cache still has the live site URL even though you updated the settings file.


To fix this, confirm that the settings file has the right URL, and then visit Administer > System Settings > Clear caches and update paths.  Update the paths there, and you should be good to go.