Help With A Site Troll

mobo57

Registered Member
Joined
Oct 30, 2010
Messages
61
Reaction score
21
Hey all need some help.
Got a guy who's been trolling my site, posting garbage, sucking bandwidth fierce. I know this dude and he's a real a#$hole. Long story short, did a .htaccess ban and so on. He pops up someplace else, usually from a free public IP, coffee house etc. Anyway can't ban those addresses, business comes from there.
Got his latest IP, want to do a 301 to a real good page. Teach him a lesson. He's not real smart and won't it take much. I know he doesn't have a clue about re-directs and so on.
Any ideas?
 
Yes!! Thats what I want!! Now if I can just find a site where it's laying in wait..... :D
 
snicker....hehehe....
 
Well, dropped in a email notice script.... just got an email from my server!
Guess he's got a hobby now!
 
you just stick this code into a php file. if they visit that page, they get pwned.

Code:
$bannedIP = "127.0.0.1";
if($_SERVER['REMOTE_ADDR'] == $bannedIP)
    header('Location: http://www.lemonparty.org');

What if the page is written in HTML and I want to redirect the homepage? For example, I want to redirect www.mysite.com to a different site but www.mysite.com is written in HTML not php. Do I just stick that piece of code anywhere in the body or would there be something else I need to do?

I'm not real good with code or any of that stuff so I appreciate the help.
 
To use a .hpaccess redirect add this code to the file:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REMOTE_ADDR} ^XXX.XXX.XXX.XXX$
RewriteRule ^(.*)$ full_url_to_redirect_to [R=302,L]
</IfModule>
Change the address in the 3rd line to the address you want to redirect. Change the full_url_to_redirect_to in the fourth line to the full url where you want to redirect to.
Page type does not matter, this is server driven so you do not change any of your site pages.
 
To use a .hpaccess redirect add this code to the file:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REMOTE_ADDR} ^XXX.XXX.XXX.XXX$
RewriteRule ^(.*)$ full_url_to_redirect_to [R=302,L]
</IfModule>
Change the address in the 3rd line to the address you want to redirect. Change the full_url_to_redirect_to in the fourth line to the full url where you want to redirect to.
Page type does not matter, this is server driven so you do not change any of your site pages.

Thanks, I'll try it out.
 
Back
Top