What's the best opening to take white's ability to castle?


Let's see, where to start... it seems you may be asking about something like Black misplaying the Scotch Game and wondering how you can do the same thing as Black.
If this is the sort thing you want to do with the Black pieces, not only can you not do it... you shouldn't even be able to do it with the White pieces if Black plays opening right.
There are lines where Black lets you do this on purpose Rat Defense, Berlin Defense, and sometimes it's a good idea and sometimes it's not, but it's often just a game. Black can't castle and that's a feature but the position ends up more or less even.
There's also stuff like the fork trick where one variation is to take on f7 or f2 and stop the other player castling and it's practically winning for the other player.
The first opening I posted is the old mainline of the Cunningham Variation of the King's Gambit. It's not really very good, but it's not bad. The "modern" version of the line is just to play 4... Nf6 and forget the whole stopping White from castling thing. It's thought not to be worth wasting so many moves to do, but the line is probably about even. I think some people even still prefer Black, who is up a pawn after all. There are better ways to fight the King's Gambit, but that's the first line I thought of that is normal theory where Black goes out his/her way to stop White from castling... also there's the old mainline of the Bishop's Gambit, come to think of it, which again dogmatic players say is not best for Black but some strong players on this forum have said there is no reason and it not a bad plan.
Some of these players seem to be posting jokes where White sacrifices a piece on f7 to prevent Black castling and loses the game... however the Cochrane Gambit is not one of those; it is a real opening, though some people think it's not sound. It's been played by modern super GMs from time to time. #6 seems to be bad as well. It might actually be good for White if Black takes the Knight but Black should be winning with Qe7. In general Black plays d6 earlier (as in the Cochrane) anyway but here is a more serious article on 3... Nxe4 which is generally thought to be a mistake: http://www.kenilworthchessclub.org/games/java/summer05/gadgil-mazzillo.htm .
Finally Turk's comment makes me think of the Benko Gambit. I don't play it so I don't really know bit but I seem to remember Black can trade Bishops on f1 and stop White from castling in some lines.
This second position I had on the board very long ago! I indeed won with black.

try the scholars mate opening.this bishop often makes it really hard to castle king side,after failure of the four move trap
idk, castling is more often the best defense to that kind of attack. If White is not attacking f7 with 3 pieces already Black simply castles and the rook and King defend f7. White shouldn't trade two pieces for the rook and pawn. If on the other hand White is attacking with 3 pieces already then Black has done something very wrong and anyway it's not the kind of position you should expect from the opening... unless you're talking about Black having pushed the f-pawn or something.

A little bit more sound, (if that can be said) than all the above posts, in order to take whites castling ability FAST is this. ( Even though it is horrifically unsound)

It's unsound, for sure. I think Traxler's line might cause white a heap of trouble. There's probably a rebuttal of that somewhere but I haven't seen it.

What the OP wants is something referring to black's play, not white.
And on a side note I'm surprised no one pointed out