regel 4 kan ik gewoon deleten toch?
E:
Heb regel 4 verwijderd maar als je erop kan werkt het dus niet:
http://tinyurl.com/32nfy6t
E:
Heb regel 4 verwijderd maar als je erop kan werkt het dus niet:
http://tinyurl.com/32nfy6t

Wiitse schreef:Omdat het een array isHeeft iemand gezegd dat je hem kan verwijderen?


Boven aan de pagina dit:
[COLOR= #0000BB]<?php $remote_ip[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR]REMOTE_ADDR[COLOR= #007700]];[/COLOR] ?>
En dan gebruik je dit om je pagina op je eigen ip te beveiligen:
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"mijn.ip.adres.hier"[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]$remote_ip[/COLOR][COLOR= #007700]){[/COLOR]?>
Hier de beveiligde pagina!
[COLOR= #0000BB]<?php[/COLOR] [COLOR= #007700]}[/COLOR] ?>
en als je 2 ips wil hebben doe dan dit:
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"mijn.ip.adres.hier"[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]$remote_ip[/COLOR] [COLOR= #007700]||[/COLOR] [COLOR= #DD0000]"ander.ip.adres.hier"[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]$remote_ip[/COLOR] [COLOR= #007700]){[/COLOR]?>
Hier de beveiligde pagina!
[COLOR= #0000BB]<?php[/COLOR] [COLOR= #007700]}[/COLOR] ?>
en je kan er nog meer inzetten met dit:
|| "ander.ip.adres.hier" == $remote_ip 
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]] != ([/COLOR][COLOR= #DD0000]"je ip"[/COLOR][COLOR= #007700])[/COLOR] AND [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]] != ([/COLOR][COLOR= #DD0000]"je ip"[/COLOR][COLOR= #007700])[/COLOR] AND [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]] != ([/COLOR][COLOR= #DD0000]"je ip"[/COLOR][COLOR= #007700])){[/COLOR]
[URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"location: index.php"[/COLOR][COLOR= #007700]);
}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[COLOR= #FF8000]//hier de tekst die je wilt laten zien[/COLOR]
?> Reinier schreef:Arrays kan je altijd een weg of erbij doen, was meer een antwoord richting WiitseDus het kan of niet?
<Limit GET POST PUT>
order deny,allow
deny from all
allow from jou.ip.adres.hier
</Limit> 
