It was exactly what I was looking for. I created block_xmlrpc.conf in the /etc/httpd/conf.d/block_xmlrpc.conf directory and added
<Files xmlrpc.php>
order deny,allow
deny from all
</Files>
systemctl daemon-reload
service lsws restart
I ran the commands and everything is fine now :D Blocked...