Closed Thread
Results 1 to 3 of 3

Thread: How can I block the bad guys ????

  1. #1
    bdistler's Avatar
    bdistler is offline x10 Lieutenant bdistler is an unknown quantity at this point
    Join Date
    May 2010
    Location
    Catalina AZ USA
    Posts
    349

    How can I block the bad guys ????

    As I understand it
    due to the way FREE x10hosting's load balancer is setup....

    assume IP 000.000.000.000 is bad guy
    .htaccess file with this
    Code:
    <Files *>
    order deny,allow
    deny from 000.000.000.000
    </Files>
    Will NOT block the bad guys IP
    my server that this .htaccess file is on
    only sees the IP of the server that feeds it

    Using PHP I can see - but AFTER the bad guy is inside
    These hold the bad guys IP
    $_SERVER[HTTP_X_FORWARDED_FOR]
    $_SERVER[HTTP_X_REAL_IP]
    $_SERVER[REMOTE_ADDR]

    This holds the IP of the server that feeds our server
    which is the IP that is tested in .htaccess
    $_SERVER[SERVER_ADDR]

    So how can I block the bad guys ????

    Thanks

  2. #2
    masshuu's Avatar
    masshuu is offline Head of the Geese masshuu has a spectacular aura about
    Join Date
    Oct 2007
    Location
    Las Colinas, Tx
    Posts
    2,262

    Re: How can I block the bad guys ????

    I found a post online that looks like it will work.

    Code:
    RewriteCond %{REMOTE_ADDR} ^111.222.333 [OR]
    RewriteCond %{REMOTE_ADDR} ^111.222.444 [OR]
    RewriteCond %{REMOTE_ADDR} ^111.222.333.444 [OR]
    RewriteCond %{REMOTE_ADDR} ^1.2.3.4
    RewriteRule ^.*$ - [F]
    Just leading the flock.
    Livewire
    Masshuu ------ carl6969
    descalzo ------------------- Smith6612
    Bryon--------------------------------- Corey
    If you find any post helpful or useful, duck
    \ / This for that post and rep it up.

  3. #3
    bdistler's Avatar
    bdistler is offline x10 Lieutenant bdistler is an unknown quantity at this point
    Join Date
    May 2010
    Location
    Catalina AZ USA
    Posts
    349

    Re: How can I block the bad guys ????

    Quote Originally Posted by masshuu View Post
    I found a post online that looks like it will work.

    Using my IP here on the computer I use - is the only way I know to test

    If my IP was 123.456.789.012
    (use real IP in .htaccess file)
    This code will NOT block my IP

    Code:
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REMOTE_ADDR} ^123.456.789.012
    RewriteRule ^.*$ - [F]

Closed Thread

Similar Threads

  1. block
    By xekapx in forum Free Hosting
    Replies: 1
    Last Post: 05-16-2010, 09:15 PM
  2. Do My IP Will Be Block ?
    By chandaka in forum Tutorials
    Replies: 3
    Last Post: 10-27-2009, 10:43 AM
  3. New guy on the block :D.
    By BringIt in forum Introductions
    Replies: 3
    Last Post: 02-12-2009, 07:52 AM
  4. new guy on the block
    By SushiXD in forum Introductions
    Replies: 3
    Last Post: 10-03-2008, 05:32 AM
  5. Is it IP block
    By gateway in forum Free Hosting
    Replies: 1
    Last Post: 02-25-2008, 07:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers