302 Redirect to MMO

Spliffic

Loves Cron Jobs
Apr 5, 2008
1,214
27
0
VanCity
So I've got this cocksucker (actually I think it's a bot from Japan) hitting my server multiple times a day. Have no idea why, but I want to redirect his IP to makemoniesonline. I modified my htaccess and tested it with my own IP and it seemed to work. But when I put in the actual IP in question, I still see his shit in my prosper logs hitting my pages.

Code:
RewriteEngine On
RewriteBase /
RewriteCond %{REMOTE_ADDR} ^150\.70\.11\.112
RewriteRule .* http://www.makemoniesonline.com [R=302,L]

Couple questions:
1. Is this code correct?
2. Is there a better method (i.e. more effeective than using htaccess)?

I don't really want to put php redirects everywhere and want to control it at the domain level.

Any help would be appreciated! Cheers
 


Thanks guys, but he's still showing up in my prosper logs, so he's still hitting my domain.

Do you guys have any other recommendations?
 
Does the source IP also have a port number? You may also have to specify a REMOTE_PORT in your htaccess if it does.
 
  • Like
Reactions: Spliffic
Lol thanks guys, especially for the email script.

No port number specified. But I find this odd, just wondering if this is normal: When I go through my raw logs, I see the IP address (example) 150.70.11.113, however in prosper that IP does not exist. However in prosper, the IP 150.70.11.112 is the one with a shitload of hits, whereas this IP doesn't exist in my logs.

I'm gonna try blocking the 113 IP using htaccess since the 112 block didn't work. Is this normal?
 
Why not just dickroll everything that's not your ip that tries to login? I do and reguarly dickroll myself. It's super fun.

Code:
<Files 202-login.php>
order deny,allow
deny from all
allow from 127.0.0.1
ErrorDocument 403 http://makemoniesonline.com/
</Files>
 
Thanks but it's not my prosper domain, it's my affiliate pages that are getting hit.

The IP that's hitting my pages is from Japan so I blocked the entire country and it's still showing this Japan IP hitting my shit. Not sure how they're pulling this off....
 
Why not mod the above to be your affiliate page, or even all pages, with a deny from the japanese ip/s and an allow from all?

Like this?

order allow,deny
deny from 150.70.11.112
deny from 150.70.11.113
allow from all
 
Thanks but this IP is hitting multiple pages within my domain. Wouldn't the above code need to be added on all pages in order for it to work? I was kind of hoping for a catch all solution at the TLD level.
 
No, add that to the htaccess. It is a catch all solution. I just edited it using my IP and a redirect to Google and it works perfect.

All I had in the htaccess was this (but obviously with my ip):

Code:
order allow,deny
deny from 150.70.11.112
deny from 150.70.11.113
allow from all         
ErrorDocument 403 http://www.google.com/
 
I did the exact same thing, and it worked when I tested my own ip, but I still see this mutherfucker coming in. I even did a deny from 150.70 to do the entire country block and he's still able to get by.

Wonder how he's pulling this shit off?
 
I just checked my server error logs and it appears that this IP is getting the 404 error via my htaccess, however their hit attempts are still showing up in prosper. Weird shit.
 
I did the exact same thing, and it worked when I tested my own ip, but I still see this mutherfucker coming in. I even did a deny from 150.70 to do the entire country block and he's still able to get by.

Wonder how he's pulling this shit off?

I'm far from the most server savvy person, but by my lightly educated guessing you can't bypass htaccess rules, therefore he's not coming in. I could be wrong of course, as I'm not clevurr at server stuff!

Why not contact support and see what they have to say about this IP? I mean what you've done is right and if it's still getting through then surely something's got to be wrong somewhere?
 
  • Like
Reactions: Spliffic