+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 13
Like Tree1Likes

Thread: Ultimate Website Firewall [Stop Attacks On Your Website]

  1. #1
    Amrik is offline x10Hosting Member Amrik is an unknown quantity at this point
    Join Date
    May 2011
    Location
    Kolkata, INDIA
    Posts
    8

    Thumbs up Ultimate Website Firewall [Stop Attacks On Your Website]

    With this script you can protect your Website against SQL injections, Http Ddos, Remote File Inclusion, Local File Inclusion, XSS attacks, Null Byte Injection, Flood DOS, CPU Over-Use, Bad User Agents, Bad Referer, Users using proxy server and many more online threats.

    SQL injection protection
    XSS attack protection
    Malicious Code Finder
    Remote File Inclusion protection
    Guest Port Checking function
    Local File Inclusion protection
    Null Byte Injection protection
    Flood DOS protection
    CPU Over-Use protection
    Bad Referer protection
    Http Ddos protection
    Users using proxy server protection
    Bad User Agents protection
    Database user blocking
    .htaccess user blocking
    Attack logs viewer
    Banned Ip manager
    Admin Account manager
    Updates Manager

    Authors:
    BlackDream, hack8


    Code:
    http://img685.imageshack.us/slideshow/webplayer.php?id=14841494.png
    Download: https://sourceforge.net/projects/web-firewall/
    iearn.tk54 likes this.

  2. #2
    callumacrae's Avatar
    callumacrae is offline not alex mac callumacrae is just really nice
    Join Date
    Dec 2007
    Location
    Wellesbourne, England
    Posts
    5,162

    Re: Ultimate Website Firewall [Stop Attacks On Your Website]

    PHP Code:
    if (!defined('IN_SCRIPT'))
    {
        
    header("HTTP/1.0 404 Not Found");
        exit;

    This kind of code is old (PHP4 era) and should be avoided. When using OOP properly, the script will not be ran, so you should be using OOP properly


    PHP Code:
    $tor_exit_node_list = '<?die;?>' . "\n" . '<!' . date('G') . '!>' . "\n" . $tor_exit_node_list;
    When I first saw this code, my syntax highlighter displayed it wrong, taking the ?> as a closing tag, not part of the string. You could have an issue with this, I could recommend splitting it up like so:

    PHP Code:
    $tor_exit_node_list = '<?die;?'.'>' . "\n" . '<!' . date('G') . '!>' . "\n" . $tor_exit_node_list;

    Function parseCleanValue can be replaced with htmspecialchars.


    You should never use @ to suppress errors, as it is slow. You should never use globals - perhaps experiment with the Singleton pattern for the database class.


    How about cleaning out register_globals?


    You're releasing it under GPLv3, meaning that anyone who downloads can do whatever they want to do with it, as long as they release it under GPLv3 themselves. Therefore "DO NOT REMOVE THE COPYRIGHT, I WILL TAKE LEGAL ACTION" violates the license.



    Moving to the appropriate forum, too.




    It looks like a pretty good script!
    I can customise your phpBB board. Send me a PM.
    lynxphp - info, tutorials and scripts
    "A forum post should be like a skirt; long enough to cover the subject but short enough to keep things interesting."

  3. #3
    GtoXic is offline x10 Lieutenant GtoXic is an unknown quantity at this point
    Join Date
    Apr 2010
    Posts
    447

    Re: Ultimate Website Firewall [Stop Attacks On Your Website]

    @callumacrae: Most syntax Highlighters are made NOT to notice <?php and ?> in quotes (double and single). And that's why it's not a good idea to use what you use :D
    █ x10 Lieutenant
    █ If I have helped, please click the star in the bottom left of my post.

    █ Free Hosting support volunteer 410 posts from Community Advocate (This is NOT live!)


  4. #4
    bd-pb is offline x10Hosting Member bd-pb is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    2

    Re: Ultimate Website Firewall [Stop Attacks On Your Website]

    Hello there

    i am glad to see my project being published on more and more websites. Thanks for your comments guys but let me explain some things.


    Quote Originally Posted by callumacrae View Post
    PHP Code:
    if (!defined('IN_SCRIPT'))
    {
        
    header("HTTP/1.0 404 Not Found");
        exit;

    You are definitely true in this one but i am not using OOP in all files. All the protections have been written without OOP so i cant think now any other way to protect the files from browsing access. Maybe this is the right way


    Quote Originally Posted by callumacrae View Post
    Function parseCleanValue can be replaced with htmspecialchars.
    unfortunately no, htmlspecialchars will convert almost any special char to html entities. I dont want this to be done. I dont want all the special chars to be converted, just some of them. In other way it may cause some problems.

    as i have already written in the protection file(sanitize) this protection is not mine, it is used by Invision Power Board.

    Quote Originally Posted by callumacrae View Post
    You should never use @ to suppress errors, as it is slow. You should never use globals - perhaps experiment with the Singleton pattern for the database class.
    When you have developped a big project it is impossible to handle all the errors. As you can see i am not using the char @ always in the project, just in some points which are less important for users.

    As for the global variables you are right and maybe the next version of the project will get rid of it
    ---------------

    Ultimate web firewall upgraded to v2.1.0 with a lot of new feautures. Just go to the website: http://www.ufirewall.org
    Last edited by bd-pb; 05-26-2011 at 04:43 AM.

  5. #5
    callumacrae's Avatar
    callumacrae is offline not alex mac callumacrae is just really nice
    Join Date
    Dec 2007
    Location
    Wellesbourne, England
    Posts
    5,162

    Re: Ultimate Website Firewall [Stop Attacks On Your Website]

    Quote Originally Posted by bd-pb View Post
    You are definitely true in this one but i am not using OOP in all files. All the protections have been written without OOP so i cant think now any other way to protect the files from browsing access. Maybe this is the right way
    Use OOP, then :P


    Quote Originally Posted by bd-pb View Post
    unfortunately no, htmlspecialchars will convert almost any special char to html entities. I dont want this to be done. I dont want all the special chars to be converted, just some of them. In other way it may cause some problems.
    As per the manual, htmlspecialchars only converts &, <, >, " and '.


    Quote Originally Posted by bd-pb View Post
    When you have developped a big project it is impossible to handle all the errors. As you can see i am not using the char @ always in the project, just in some points which are less important for users.
    Only if you've coded it wrong from the beginning
    I can customise your phpBB board. Send me a PM.
    lynxphp - info, tutorials and scripts
    "A forum post should be like a skirt; long enough to cover the subject but short enough to keep things interesting."

  6. #6
    bd-pb is offline x10Hosting Member bd-pb is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    2

    Re: Ultimate Website Firewall [Stop Attacks On Your Website]

    Quote Originally Posted by callumacrae View Post
    Use OOP, then :P
    Using OOP in all the files is a bit confused at least for me. Its better but no necessary



    Quote Originally Posted by callumacrae View Post
    As per the manual, htmlspecialchars only converts &, <, >, " and '.
    I see, but looking at the parsecleanvlue function you will see more chars to be converted :P Haha i had a lot time to see that file. It must be changed immidiatelly.



    Quote Originally Posted by callumacrae View Post
    Only if you've coded it wrong from the beginning
    NO i disagree. Even if you have made a class which handles the errors you will still have some problems. Just think about it...There are some php functions that returns errors even if you have parse them with the right way. Lets take for example fsockopen
    Last edited by bd-pb; 05-26-2011 at 05:06 AM.

  7. #7
    callumacrae's Avatar
    callumacrae is offline not alex mac callumacrae is just really nice
    Join Date
    Dec 2007
    Location
    Wellesbourne, England
    Posts
    5,162

    Re: Ultimate Website Firewall [Stop Attacks On Your Website]

    fsockopen will only throw an error if you give it an invalid domain or it can't make the connection. Instead of suppressing the errors, a try / catch statement should be used.
    I can customise your phpBB board. Send me a PM.
    lynxphp - info, tutorials and scripts
    "A forum post should be like a skirt; long enough to cover the subject but short enough to keep things interesting."

  8. #8
    vv.bbcc19's Avatar
    vv.bbcc19 is offline Community Advocate vv.bbcc19 is just really nice
    Join Date
    Jun 2010
    Location
    India
    Posts
    1,505

    Re: Ultimate Website Firewall [Stop Attacks On Your Website]

    Finally, is it safe to use the same on X10hosting or is it still to get to a conclusion?
    Will that eat resources and create high resource suspensions?

  9. #9
    Electroprgcr is offline x10Hosting Member Electroprgcr is an unknown quantity at this point
    Join Date
    Sep 2006
    Posts
    24

    Re: Ultimate Website Firewall [Stop Attacks On Your Website]

    thanks is a good idea
    Visit my website. www.webpro.cr

  10. #10
    vv.bbcc19's Avatar
    vv.bbcc19 is offline Community Advocate vv.bbcc19 is just really nice
    Join Date
    Jun 2010
    Location
    India
    Posts
    1,505

    Re: Ultimate Website Firewall [Stop Attacks On Your Website]

    Is the firewall working without any HRU suspenstions?
    Did anyone checked it out yet on X10 free hosting services?
    Plz post.

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Converting static HTML website to dynamic PHP website
    By bhupendra2895 in forum Programming Help
    Replies: 7
    Last Post: 08-01-2010, 03:02 AM
  2. Replies: 2
    Last Post: 05-13-2010, 04:06 PM
  3. website market place sell your website know for free
    By iwarrior in forum Ads & Offers
    Replies: 0
    Last Post: 04-23-2010, 08:26 PM
  4. Replies: 3
    Last Post: 03-19-2010, 11:30 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