Demonstrators threw fireworks and stones at police cordoning off Taksim Square, the city’s main square.
President Abdullah Gul is under pressure not to ratify the legislation.
The new legislation includes powers allowing authorities to block websites for privacy violations without a court decision.
The opposition says it is part of a government attempt to stifle a corruption scandal.
PM Recep Tayyip Erdogan has denied accusations of censorship, saying the legislation would make the internet “more safe and free”.
The Turkish parliament approved the bill last week.
As well as allowing Turkey’s telecommunications authority to block websites without first seeking a court ruling, it will also force internet providers to store data on web users’ activities for two years and make it available to the authorities.
Internet access in Turkey is already restricted and thousands of websites blocked.
Recep Tayyip Erdogan has been openly critical of the internet, describing Twitter as a “scourge” and condemning social media as “the worst menace to society”.
Both Twitter and Facebook were widely used by anti-government protesters to spread information during demonstrations last year.
The corruption scandal broke in December with the arrest of businessmen close to the prime minister and three ministers’ sons.
Since then, Recep Tayyip Erdogan’s government has sacked hundreds of police officers and executives from banking and telecoms regulators and state television.
Recep Tayyip Erdogan says the scandal is an attempt by a US-based cleric with influence in the police and judiciary to unseat him. The cleric, Fethullah Gulen, denies this.
P7aN2UMIavEPresident Joe Biden has urged pro-Palestinian protesters on university campuses to uphold the rule of…
Blue Ivy Carter has joined the voice cast of The Lion King prequel Mufasa: The…
At least five people, including a four-month-old baby, have been killed after dozens of tornadoes…
Harvey Weinstein has been hospitalized just days after his 2020 rape conviction in New York…
Hamas has published a video showing the first proof of life of US and Israeli…
Prosecutors and Donald Trump’s attorneys delivered opening statements and the first witness was called on…