@Daisy101
You need to log into your cPanel account and edit the .htaccess file and erase the code you entered.
After that, add the following lines:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .(wp-comments-post|wp-login|wp-admin)\.php*
RewriteCond %{HTTP_REFERER} !.*YOUR-DOMAIN.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]
</IfModule>
This will help you.
Good luck!