TEHRAN, Iran (AP) -- From a computer keyboard in London, an Iranian emigre plays the role of counselor, social media guru and all-around adviser for Internet users back home seeking ways around the cyber-blocks set up by authorities in Tehran. These have been busy days.
His Twitter account -- which goes under the handle of Nariman Gharib -- registers a steady stream of calls for help from Iran and responses about new proxy servers, dial-up modems and other possible workarounds. The goal is to defeat Iran's Internet clampdowns, which have intensified in the approach to presidential elections on June 14.
"Here is a new link for Siphon," he wrote, describing a site that directs users to a server outside Iran. Minutes later, replies stream back that it worked on Android systems but not PCs. He sent a tweaked Web address.
"Hope this works," he wrote.
State controls on the Internet in Iran are nothing new. Authorities have steadily tried to choke off social media and political opposition sites -- among others -- since they became tools for protesters alleging vote rigging after President Mahmoud Ahmadinejad's disputed re-election four years ago.
Now, with the election to pick Ahmadinejad's successor looming, the constraints are drawing even tighter. Iranian authorities appear to be stepping up their efforts to block the pathways to servers outside Iran that open access to outlawed sites such as Facebook, the BBC's Persian service and websites from what's left of Iran's opposition Green Movement.
The Internet squeeze signifies more than a display of widening state controls before an election that is almost certain to bring an establishment-friendly winner. It's also another showcase of Iran's expanding online prowess led by the powerful Revolutionary Guards.
A special Web-watching corps established two years ago has the mission of patrolling the domestic Internet and fighting suspected cyberwars with the West and its allies. Some say it even creates false activist profiles to try to ferret out dissidents.
Iran is believed by many security experts to be behind computer-virus attacks last year on Saudi Arabian state oil giant Saudi Aramco and Qatari natural gas producer RasGas. Last week, The New York Times reported that Iran is considered a chief suspect in a series of malware breaches into U.S. energy companies, citing American officials and corporate security experts. Iran has repeatedly denied similar claims.
But Iran also has been hit by viruses it claims were launched by the U.S. and Israel. A date-siphoning program known as Flame forced Iran's Oil Ministry to completely shut down its computer system last year. Three years ago, Iran's uranium-enrichment labs were penetrated by a virus called Stuxnet, which was tailored to disrupt Iran's nuclear centrifuges.
On Sunday, Iran inaugurated a 5,000-kilometer (3,000-mile) fiber-optic line running to Germany via Russia. Iran's North Korean-educated communications minister, Mohammad Hasan Nami , said it will boost the "security" of telecommunications as part of Iran's wider efforts to seek a self-contained Internet with its own Google-style search engines and vetted websites such as Twitter and Facebook accounts attributed to Supreme Leader Ayatollah Ali Khamenei.
"Iranian authorities are getting better at controlled cyberspace," said Theodore Karasik, a security and political affairs analyst at the Dubai-based Institute for Near East and Gulf Military Analysis. "But Iran's Internet generation is very clever at beating them at their own game."
The legions of well-educated and highly Web literate Iranians under 30 are the backbone of a kind of cyber-underground. Names and Web addresses of proxy server sites that allow users to sidestep controls are passed around like hot gossip. Lately, however, authorities appear to be gaining the upper hand.
Each morning, Hossein Razaei, a mechanical engineer who runs a small engineering company in Tehran, checks up on the best-working path to beat the censors. Sometimes that means scanning banned news sites such as Voice of America or connecting to foreign engineering firms to look at new ideas.
"Nowadays," he laments, "we cannot open many sites."
Iranian authorities have not commented directly on any possible new Web controls. Some lawmakers have suggested that Web restrictions are needed to prevent "enemies" -- a reference to U.S. and allies -- from influencing the election.
But Iran's leaders certainly have factored in the chaos in 2009, which marked Iran's worst domestic unrest since the 1979 Islamic Revolution.
It also was a precursor to the Arab Spring in the use of social media. Sites such as Facebook and Twitter -- still relatively obscure in the region at the time -- were essential to organizing protests and giving accounts of crackdowns after blanket media restrictions were imposed. A YouTube video of a dying protester, Neda Agha Soltan, became an iconic image of the demonstrations.