|
|
#1 |
|
Member
Join Date: Sep 2007
Posts: 58
Rep Power: 7 ![]() |
where do i find my index page so I can place this code in it.
<?php $deny = array("111.111.111", "222.222.222", "333.333.333"); if (in_array ($_SERVER['REMOTE_ADDR'], $deny)) { header("location: http://www.google.com/"); exit(); } ?> |
|
|
|
|
#2 |
|
Moderator
Join Date: Mar 2006
Posts: 3,871
Rep Power: 94 ![]() ![]() |
So what are you going to do about protecting all of your other pages? If you have the designer version of the software the php files are encoded so you cant edit them anyway.
As I mentioned in your other post, use your web host tools to block IP's.....much much easier.
__________________
Larry. (Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free) Set your site apart from the competition with one of my modules...... Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module 68 Classifieds Important Links Customer Area | Issue Tracker | Knowledge Base | User Manuals |
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| can I run scripts in an content page? | dawyatt | v3.1 Questions & Support | 11 | 06-22-2007 03:50 PM |
| I have a page editing question. | Tater | v3.1 Questions & Support | 7 | 03-29-2007 01:14 PM |
| Can't edit page content | redgsr | v3.1 Questions & Support | 6 | 03-08-2007 02:41 PM |
| Problem getting page title | flyingpylon | v3.1 Questions & Support | 5 | 10-19-2006 02:15 PM |