1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help With A Site Troll

Discussion in 'BlackHat Lounge' started by mobo57, Dec 3, 2010.

  1. mobo57

    mobo57 Registered Member

    Joined:
    Oct 30, 2010
    Messages:
    61
    Likes Received:
    20
    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?
     
  2. blackheader

    blackheader Jr. VIP Jr. VIP Premium Member

    Joined:
    Apr 3, 2010
    Messages:
    282
    Likes Received:
    288
    • Thanks Thanks x 2
    Last edited: Dec 3, 2010
  3. mobo57

    mobo57 Registered Member

    Joined:
    Oct 30, 2010
    Messages:
    61
    Likes Received:
    20
    Yes!! Thats what I want!! Now if I can just find a site where it's laying in wait..... :D
     
  4. mobo57

    mobo57 Registered Member

    Joined:
    Oct 30, 2010
    Messages:
    61
    Likes Received:
    20
    snicker....hehehe....
     
  5. mobo57

    mobo57 Registered Member

    Joined:
    Oct 30, 2010
    Messages:
    61
    Likes Received:
    20
    Well, dropped in a email notice script.... just got an email from my server!
    Guess he's got a hobby now!
     
  6. J1218

    J1218 Power Member

    Joined:
    Jan 9, 2010
    Messages:
    675
    Likes Received:
    401
    How exactly do you redirect someone's IP to a new site?
     
  7. tacopalypse

    tacopalypse Executive VIP Jr. VIP Premium Member

    Joined:
    Nov 30, 2009
    Messages:
    980
    Likes Received:
    2,485
    Home Page:
    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');
    
    
     
    • Thanks Thanks x 3
  8. J1218

    J1218 Power Member

    Joined:
    Jan 9, 2010
    Messages:
    675
    Likes Received:
    401
    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.
     
  9. mobo57

    mobo57 Registered Member

    Joined:
    Oct 30, 2010
    Messages:
    61
    Likes Received:
    20
    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 Thanks x 1
  10. dillfly2000

    dillfly2000 Junior Member

    Joined:
    May 4, 2010
    Messages:
    120
    Likes Received:
    75
    Occupation:
    I've paid my dues, I deserve free money!
    Location:
    3 of 2 places
    Home Page:
    send him to meatspin.
     
    • Thanks Thanks x 1
  11. J1218

    J1218 Power Member

    Joined:
    Jan 9, 2010
    Messages:
    675
    Likes Received:
    401
    Thanks, I'll try it out.