[resolved] Deny requests from unauthorized domains (2 posts)

  1. yisera
    Posted 2 years ago #

    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 http://moonlightbeachclub.com is trying to pass as if they were my site: https://hsoto.me

    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.

  2. yisera
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic