How to do it? I tried to include this in my overall_header.html file but it didn't work:
It is to a script that works like a firewall on my site and stops hacking attempts.PHP Code:require('security/munin.php');
munin('security/');
How to do it? I tried to include this in my overall_header.html file but it didn't work:
It is to a script that works like a firewall on my site and stops hacking attempts.PHP Code:require('security/munin.php');
munin('security/');
Last edited by galaxyAbstractor; 10-29-2007 at 02:01 PM.
Also make sure you surround it with the tags:
<?php
/*code goes here*/
?>
You could rename overall_header.html to overall_header.php, include the php as above, then paste any html after it
Did you look in the script at all? Do you understand it?
Did you download it from somewhere that claimed it would prevent hackers? If so, that is not the way forward. If you are worried about hackers, learn to understand your site and what happens within it (especially with regard to dynamic content, if any). Probably if you just have static pages (ie html), you won't get hacked unless you give somebody your password/ftp or someone sniffs when you use unencrypted ftp. With dynamic content, such as php, learn how you protect your form inputs, GET, POST etc by taking a good read at:
http://docs.php.net/manual/en/security.php
Only when you understand the threats (if any) can you prevent hackers.
OR! you could put in it INDEX.PHP or w/e file that is always loaded![]()
Easiest 70 points you'll make on x10
Feel free to add my reputation by clicking on theif you found my post helpful to you :P
If I am not responding to your PMs, that means I am ignoring you. Take a hint.
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
I thought so too but if the bot/hacker is going to ex: viewtopic.php or memberlist.php that code will disappear and that will result in I need to insert that code in 200+ files of php. I know who did this script so I think it will work. Maybe not preventing all because that would be impossible but protecting somewhat.
If I rename overall_header.html to overall_header.php then I am in the same situation to edit 200+ files to the chang, aren't I?
Afraid so. You could just make it so the server parses the html files as php.
Just add this into your .htaccess file:Code:AddType application/x-httpd-php .php .html
hi,
iam Naim.
i wanna tell you one thing ... it is immpossible to inclue php in a html.
you can put it in form of iframe as this:
byeee// <iframe width=780 height=814 src="http://www.naimonline.net.ms" scrolling="auto" frameborder="0"></iframe> //