Support » Fixing WordPress » Deny requests from unauthorized domains

  • Resolved yisera


    I’m having a hard time trying to figure out why WordPress is allowing this site’s request to come in when I specifically blocked it on my .htaccess file:

    RewriteCond %{SERVER_NAME} ^(www\.)?moonlightbeachclub\.com$
    RewriteRule ^ - [F]

    This used to work when my site was hand-coded. But then I decided it was too hard to mantain because I was busy on my other jobs, so I decided to make a simple WordPress blog which will be easier to mantain.

    This rule is no longer working.

    The problem is that the site is trying to pass as if they were my site:

    GoDaddy has been contacted about this issue, and they told me to go to this stackoverflow thread to solve it, as they couldn’t do anything else to help me:

    I went there and that’s where I got my code which was working until I installed WordPress. Is there something different I can do? Please help me.

Viewing 1 replies (of 1 total)
  • UPDATE: I finally got it to work by moving the instructions to the beggining of the file.

    Now it denies all the requests from that unauthorized account.

Viewing 1 replies (of 1 total)
  • The topic ‘Deny requests from unauthorized domains’ is closed to new replies.