Quote:
Originally Posted by Adrian Schneider
Isn't there an option for that already?
AdminCP > Options > User Banning > Banned IP Addresses
|
Yes, we did ban that IP range through the ACP but whenever we look at "Who's Online", 80% are bots from that IP. I suspect that they are just indexing our site for China's search engine but our head forum admin wants to block them anyway to be safe.
Normally, this would be as easy as adding a line of code to the header template (see above).
So if I wanted to add the code below to the top of every page, how would I do it if I can't write PHP in the style templates area? Can someone point me to a manual or tutorial?
Code:
<php? ECHO "hello world"; ?>
--------------- Added [DATE]1312474978[/DATE] at [TIME]1312474978[/TIME] ---------------
Quote:
Originally Posted by Lynne
Have you talked to your host about other methods to block ips? What about iptables?
|
Our site is on GoDaddy and they had no solution since we are on a Windows server. I can use a web.config file to block IP addresses from accessing our ASP.Net website but that won't work for our PHP forum. I've never heard of using IPtables to block traffic. ??