Disable pingback.ashx and metablog.ashx

I was wondering how I could go about disabling pingback.ashx and metablog.ashx   version 8.5