Hi, I had no problems up to now and this is really wrecking my head. Basically I created a wordpress subdomain (sub.domain.com) and around the same time I added this code to cpanel/file manager/doc root/.htaccess file.. <Files ~ "\.pdf$"> Header set X-Robots-Tag "noindex, nofollow" </Files> ..to DE-INDEX any .pdfs on my domain and subdomain. Now every time I try create a post in wordpress on sub.domain.com with a link to ANY PDF file I get NO DATA and the host blocks my IP address. I have since removed the .htaccess code but it keeps doing it. I contacted my host and just waiting for a reply tomorrow. Any ideas what in the name of god is going on? Thanks.
You're probably triggering some mod_security rules by accident. You can ask your host to whitelist that sub-domain from mod_security, so you won't get blocked anymore.
Or CSF firewall, it is highly known to block people constant legitimate users, get them to up the firewall rules and modify them to stop blocking you
Its probably mod security rule being triggered by your subdomain. Ask your host to whitelist that specific rule for you. If you have a static ip, you can also ask your host to whitelist your ip on the server.
Did you check with your provider for the logs ? Logs will help you to understand why it is being blocked and what can you do so that it does not keeps on blocking you.