• I have added the following to my htaccess file to block a certain IP address that is spamming my site and running up my bandwidth…

    order allow,deny
    deny from 72.36.244.195
    allow from all

    this has and is working for other IP addresses, but for some reason that IP address won’t stop, it is getting through somehow… it leaves a referer of https://mykahil.com:80/guestboo k/? and is trying to go to the same page over and over again… this page does not exist and all you’ll get is my 404 error page…

    How can I block this IP?

    Thank you,

    Kahil

Viewing 14 replies - 61 through 74 (of 74 total)
  • yes…

    RewriteCond %{REQUEST_URI} ".*guestbook$"
    RewriteRule .* - [F]

    demo

    Thread Starter Kahil

    (@kahil)

    LMFAO!!!

    by doing that is that what it will say? or is that just a custom thing you made for it? also, will that make it so that any URI combination that they use that has “guestbook” in it, it will do that?

    Thank you,
    Kahil

    Thread Starter Kahil

    (@kahil)

    I just tried to add that to my htaccess and I don’t think it worked… i uploaded it, made sure that it didn’t cause any problems with accessing my site, and then when I tried to go to /guestbook/, it just took me to my 404 page…

    I dunno then. That rule should work.

    https://www.mykahil.com/guestbook/ gives me the wp 404.

    https://www.mykahil.com/guestbook gives me godaddy’s 404 (no trailing slash)

    put the rule above all of the wp stuff in your .htaccess, see if that makes a difference

    RewriteCond %{REQUEST_URI} ".*guestbook*"
    RewriteRule .* - [F]

    that blocks subdirectories for me, as well.

    https://www.village-idiot.org/guestbook/blah/blah

    Under “normal” circumstances that should do the trick. If not, it’s due to either wp or how godaddy is handling 404s, or both, not the rule itself.

    My dog, Coco, has a slipped disk so I will be in and out for the rest of the day, but ill check back later to see if youve resolved this.

    Thread Starter Kahil

    (@kahil)

    yay!!! that second one with the * after the word guestbook instead of the $ did the trick!!!

    THANK YOU!!!!!!!!

    cool, glad to hear that worked. Now if I could only keep my beloved puppy from being paralyzed, the world would be perfect ??

    Thread Starter Kahil

    (@kahil)

    whooami,

    Please help!!!

    I don’t know what they hell happened but all of a sudden it is happening again. I still have the above expression in my htaccess file and have made no changes. It was working perfectly before, but not anymore for some reason.

    What can I do?

    Thank you

    Thread Starter Kahil

    (@kahil)

    OK, thats wierd… now its working again…

    i’m confused…

    but i am having a problem with this URI…

    /2005-11-09/59

    I tried to do the same as with the whole guestbook thing, but it isn’t working…

    Thread Starter Kahil

    (@kahil)

    hmmm… it seems as though it works for a while, but then it stops… as soon as I re-upload the htaccess file I saved, it works….but after a while it starts back up by loading my 404 page rather than the server error page thereby using my bandwidth to load a whole page. At this point its randome and few and far between, but I don’t want it to get to the level it was before where I was getting 400+ hits in a day with some robot trying to go to a page that doesn’t exist.

    Does anyone know what is happening?

    Thank you,
    Kahil

    Thread Starter Kahil

    (@kahil)

    yeah… i just tried it again and it still won’t work for those other URIs…

    Thread Starter Kahil

    (@kahil)

    whooami can you help? or anyone else?

    I just had to re-upload my htaccess file again to make it work right again… I don’t understand what is going on.

    Thread Starter Kahil

    (@kahil)

    OK… I have figured this out…

    here is the beginning of my htaccess file when it works…

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php
    </IfModule>
    # END WordPress

    somehow it is getting changed to….

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    I hae not done this myself and it all started once I upgraded to this supposedly better version 2.03…

    is there a way to keep wordpress from changing this like that?

    Thank you

    Thread Starter Kahil

    (@kahil)

    I am still having this problem… despite using those htaccess entries, its not working. I don’t know why. It was working before for a while…then somehow I guess a hacker figured out a way to change my htaccess to add that [L] in it, so I had to go in and delete that from time to time, which was OK with me. But not nothing is working and I can’t get these people to stop. Blocking their IP in htaccess isn’t work nor is blocking the URI that they try to enter, that doesn’t exist, like /guestbook/.

    please help

Viewing 14 replies - 61 through 74 (of 74 total)
  • The topic ‘can’t block an IP….please help!!!’ is closed to new replies.