Welcome to the RaGEZONE - MMORPG development forums.

[Apache Server] Apache 2 modules (mod_security) and (mod_dosevasive22)

This is a discussion on [Apache Server] Apache 2 modules (mod_security) and (mod_dosevasive22) within the Habbo Releases forums, part of the Habbo Hotel category; Hi, much Hotels use Apache 2.2.x (include in Xammp). The Apache http Server is not the best, but with this ...

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Member
    Rank
    Member
    Join Date
    Apr 2011
    Location
    Frankfurt a. M.
    Posts
    94
    Liked
    36

    config [Apache Server] Apache 2 modules (mod_security) and (mod_dosevasive22)

    Hi,
    much Hotels use Apache 2.2.x (include in Xammp).
    The Apache http Server is not the best, but with this Two tools / modules can u make it mor safer and a little bit better.

    ->OVERFLOW Request Shield.
    ->Injector Protect.
    ->DOS Shield.



    NOTE!
    You need the Microsoft Visual C++ Basic Files!!!


    The first One:
    mod_security

    CREDITS:
    Original source by: Ivan Ristic <ivanr@webkreator.com>
    Original Home: ModSecurity: Open Source Web Application Firewall

    Creator:
    win32 files: Steffen
    Mail: info@apachelounge.com
    Home: ApaceLounge (Apache on Windows)


    INSTALL

    1"
    Create an folder into ".../apache/modules/" name it "mod_security2"

    2"
    Copy the files (mod_security2.so, libxml2.dll and pcre.dll)
    into your ".../apache/modules/mod_security2" folder.

    3"
    Add this to your httpd.conf (.../apache/conf/httpd.conf)

    Code:
    LoadModule security2_module modules/mod_security2/mod_security2.so
    and if it not exist (or enable this by by uncommenting)

    Code:
    unique_id_module modules/mod_unique_id.so
    and add to the bottom:

    Code:
    <IfModule mod_security2>
    
        SecRuleEngine On
        SecDefaultAction log,auditlog,deny,status:403,phase:2,t:lowercase,t:replaceNulls,t:compressWhitespace
    
        SecAuditEngine RelevantOnly
        SecAuditLogType Serial
        SecAuditLog logs/mod_security2.log
    
        SecRule ARGS "c:/" t:normalisePathWin 
        SecRule ARGS "\.\./" "t:normalisePathWin,id:99999,severity:4,msg:'Drive Access'" 
        SecRule ARGS "d:/" t:normalisePathWin
    
    </IfModule>


    The Second One:

    mod_dosevasive22

    CREDITS:
    Original Home: http://www.zdziarski.com/projects/mod_evasive/
    < More CREDITS can't be set, the Page is not longer Online >


    INSTALL:

    1"
    Copy the files (mod_dosevasive22.c and mod_dosevasive22.dll) into your ".../apache/modules" folder.

    2"
    Add this to your httpd.conf (.../apache/conf/httpd.conf)

    Code:
    LoadModule dosevasive22_module modules/mod_dosevasive22.dll
    and add to the bottom:

    Code:
    <IfModule dosevasive22_module> 
    
        DOSHashTableSize 3097 
        DOSPageCount 90 
        DOSSiteCount 110 
        DOSPageInterval 1 
    
        DOSSiteInterval 1 
    
        DOSBlockingPeriod 10 
    
        DOSWhitelist 127.0.0.1
    
    </IfModule>
    INFO:

    DOSHashTableSize
    Nuber of top-level nodes.

    DOSPageCount
    Number of maximum requests per Webpage.

    DOSSiteCount
    Number of maximum requests per any Object by the same client.

    DOSPageInterval
    Number of the server waiting intervall before the next Webpage request is allowed.

    DOSSiteInterval
    Number of the server waiting intervall before the next Webpage request is allowed.

    DOSBlockingPeriod
    Number (in seconds) of the blockingtime for an overrequested client.

    DOSWhitelist
    The Whitelist of the client IP's hwo is allowed to overrequested.




    If an Client overrequested it shows an 403 Error.

    _______________________________________________________________________

    Sorry, my ENGLISH is not so good.

    _______________________________________________________________________

    File Download:

    HTTP
    security2.7z (File size = 579,677 kb)

    FTP
    FTP Server: gtx-server.dyndns.org

    Windows File Explorer
    ftp://gtx-server.dyndns.org/FTP/apache_mods/
    Copy into your Windows Explorer (not Internet Explorer)

    you don't trust it?
    keep your hands away from it!




    -Tenshie
    Last edited by TenShie; 04-06-11 at 09:50 AM.

  2. #2
    The one and only!
    Rank
    Subscriber
    Join Date
    Nov 2008
    Posts
    4,145
    Liked
    1492
    Gamertag: DecidingClock47 Steam ID: hejularz

    Re: [Apache Server] Apache 2 modules (mod_security) and (mod_dosevasive22)

    Very nice thread, good information with it too - Thanks!

  3. #3
    Member
    Rank
    Member
    Join Date
    May 2011
    Posts
    41
    Liked
    7

    Re: [Apache Server] Apache 2 modules (mod_security) and (mod_dosevasive22)

    Nice Tutorial.

  4. #4
    Alpha Member
    Rank
    Alpha Member
    Join Date
    Oct 2007
    Posts
    2,710
    Liked
    676
    Gamertag: Cake Jake Bake

    Re: [Apache Server] Apache 2 modules (mod_security) and (mod_dosevasive22)

    Helps the people who still use Xampp.

  5. #5
    C# | C++
    Rank
    Member +
    Join Date
    Oct 2010
    Location
    Germany
    Posts
    421
    Liked
    59

    Re: [Apache Server] Apache 2 modules (mod_security) and (mod_dosevasive22)

    Xampp is n00b-like XP

  6. #6
    Member
    Rank
    Member
    Join Date
    Apr 2011
    Location
    Frankfurt a. M.
    Posts
    94
    Liked
    36

    wink Re: [Apache Server] Apache 2 modules (mod_security) and (mod_dosevasive22)

    Quote Originally Posted by Emerica View Post
    Xampp is n00b-like XP
    hehe thats right, i could begin to write down "use IIS7" and Paralells10. -FINISH xDD

    or Install all your services Manualy.
    (Apache, PHP, mySQL, FTP, MAIL)

    The best for Linux: ISPCPbut the Emulator's are non Linux or UNIX based.
    I could find some one for this.

    hmm coud be an nice Project, make an Emulator for UNIX-Machines(Linux /Mac) But MacOS is a f**ked UNIX xDD


    -TenShie

  7. #7
    Member
    Rank
    Member
    Join Date
    May 2010
    Posts
    86
    Liked
    21

    Re: [Apache Server] Apache 2 modules (mod_security) and (mod_dosevasive22)

    Good work, But everyone needs to stop using xampp. Its a horrible webserver package. Hope you helped someone today.
    AKA xDarkMedium AKA Deformed of TheDefaced.
    [Owner] - http://fatalhotel.com

  8. #8
    God
    Rank
    Subscriber
    Join Date
    Dec 2008
    Location
    Virginia
    Posts
    914
    Liked
    51
    Gamertag: Day PSN ID: Ryandoung69

    Re: [Apache Server] Apache 2 modules (mod_security) and (mod_dosevasive22)

    this is so amazin :D ""
    Last edited by Punk; 04-06-11 at 03:38 PM.

  9. #9
    Omega
    Rank
    Omega
    Join Date
    Dec 2006
    Posts
    6,842
    Liked
    95

    Re: [Apache Server] Apache 2 modules (mod_security) and (mod_dosevasive22)

    This only stops attacks on software base, NOT hardware base, traffic still reaches the server, gets proccessed (read all and then trown away)
    .

  10. #10
    ┌∩┐(◣_◢)┌∩
    Rank
    Alpha Member
    Join Date
    Jun 2008
    Location
    Quebec
    Posts
    2,138
    Liked
    180

    Re: [Apache Server] Apache 2 modules (mod_security) and (mod_dosevasive22)

    the stupid part about having mod evasive is the fact is cancels your requests. Meaning data transfer, so while users on your actual hotel are trying to play there items and furni will not load because the apache files will only transfer so much before locking.

    -o)
    /\\
    _\_V
    The Penguin is "ALWAYS WATCHING".. HEHE




  11. #11
    FeedMe
    Rank
    Alpha Member
    Join Date
    Jun 2010
    Location
    The Netherlands
    Posts
    2,162
    Liked
    1389

    Re: [Apache Server] Apache 2 modules (mod_security) and (mod_dosevasive22)

    i've a button on my router 'ddos protection' :3, way better then a mod.

  12. #12
    No, Just no.
    Rank
    Member +
    Join Date
    Jul 2008
    Location
    United Kingdom
    Posts
    1,382
    Liked
    607

    Re: [Apache Server] Apache 2 modules (mod_security) and (mod_dosevasive22)

    Quote Originally Posted by omnija View Post
    the stupid part about having mod evasive is the fact is cancels your requests. Meaning data transfer, so while users on your actual hotel are trying to play there items and furni will not load because the apache files will only transfer so much before locking.
    You need to up the limits :) Then it won't.
    Helping those who deserve to be helped.

    Just because you can edit 2 lines of PHP code and change a variable does not mean you're a programmer. And just because you can follow a tutorial on how to set up IIS does not make you a server technician or manager.

  13. #13
    IT-Developer
    Rank
    Member +
    Join Date
    Aug 2010
    Location
    Sweden
    Posts
    208
    Liked
    39

    Re: [Apache Server] Apache 2 modules (mod_security) and (mod_dosevasive22)

    So fucking much thanks!

  14. #14
    Layout&CMS&Computer
    Rank
    Member +
    Join Date
    Dec 2008
    Location
    NL
    Posts
    656
    Liked
    112

    Re: [Apache Server] Apache 2 modules (mod_security) and (mod_dosevasive22)

    people hacking my friend ip doss :(
    you have no clear video tutorial please

  15. #15
    My cat can play piano!
    Rank
    Member +
    Join Date
    Jan 2009
    Location
    Underground
    Posts
    716
    Liked
    58

    Re: [Apache Server] Apache 2 modules (mod_security) and (mod_dosevasive22)

    Quote Originally Posted by mohje View Post
    people hacking my friend ip doss :(
    you have no clear video tutorial please
    I recommend you to let your friend using ISS7:)

 

 
Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •