I'm not trying to be political I'm just curious if this kind of thing has ever happened before and under what presidency and circumstances. Thanks
Many presidents have had adversarial relationships with the press and have controlled access to some or all reporters at different times throughout the country's history.
Given how your question is phrased, I assume you are specifically referring to the White House press corps, the group of correspondents with offices in the West Wing who regularly attend scheduled press conferences and submit questions to the Press Secretary and to the President. Before that group was formed in the early 1900s the press had a much more unpredictable connection to the president.
Regarding the press corps, Woodrow Wilson threatened to cancel press conferences entirely after a reporter published comments he had made off the record.
Referring to the press corps, Hoover declared that "once I am reelected, I am going to clean that bunch out whatever the consequences may be." We'll never know how serious of a threat this was, as he was of course not reelected.
For the most specific answer to your question, Nixon banned Stuart Loory of the LA Times when Loory wrote about how much Nixon’s vacation home cost taxpayers.
If you're interested in learning more about presidents' often adversarial relationships with the Press Corps, I highly recommend "Who Speaks for the President?" by W. Dale Nelson. That is where the Hoover quote is from.