Setting the indexer to "manual" mode will prevent it from automatically indexing on save/edit/delete.
In MAGE_ROOT/shell you can find a script called indexer.php that, between others allows you to enable/disable indexers:
php indexer.php --mode-manual catalog_url
php indexer.php --mode-realtime catalog_url
You can have a script that sets all the indexers to manual
If you want to do it programatically, something along the lines should work:
$pCollection = Mage::getSingleton('index/indexer')->getProcessesCollection();
foreach ($pCollection as $process) {
$process->setMode(Mage_Index_Model_Process::MODE_MANUAL)->save();
//$process->setMode(Mage_Index_Model_Process::MODE_REAL_TIME)->save();
}