Bestaat er een script waarbij je IPs in kan voeren zodat alleen die kunnen kijken? Hoe werkt dat dan? En mocht je dat kunnen maken meld het.
IP Script
Maak een .htaccess bestandje aan met dit erin:
Deny from all
Allow from [IP]
Allow from [IP] Je kan het zo doen maar je kan het ook met php doen.
hoe
Kijk hieronder
Dit zal wel niet werken, maar hier komt het wel op neer.
[COLOR= #0000BB]<?php
$ip[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]192.000.000.000[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$ip[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]10[/COLOR][COLOR= #007700]] <[/COLOR] [COLOR= #0000BB]$ip[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]50[/COLOR][COLOR= #007700]]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]Je hebt toegang.[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]Je hebt geen toegang.[/COLOR][COLOR= #007700];
}[/COLOR]
?> Dit zal wel niet werken, maar hier komt het wel op neer.
Stel hij werkt.. dan moet de pagina eronder?
Nee, dan moet de pagina bij waar nu dit staat: Je hebt toegang., maar dan zou ik de code aanpassen naar dit(dit is na de echo), dan moet dus waar nu Je hebt toegang staat de pagina:
?>
Je hebt toegang.
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700];[/COLOR] @ Tom; Wtf is dat voor een kutscript? 

Inderdaad, lijkt nergens op 

Erik schreef:Een heeeeeeeeeeeeeeeeeeeeeeel erg kut script@ Tom; Wtf is dat voor een kutscript?
Precies
Als je iemand iets wilt geven dan moet je ook iets goeds geven.
Als je iemand iets wilt geven dan moet je ook iets goeds geven.[COLOR= #0000BB]<?php
$ip[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR]
[COLOR= #DD0000]123.456.789.101[/COLOR][COLOR= #007700],[/COLOR]
[COLOR= #DD0000]123.456.789.102[/COLOR][COLOR= #007700],[/COLOR]
[COLOR= #DD0000]123.456.789.103[/COLOR][COLOR= #007700],[/COLOR]
[COLOR= #DD0000]123.456.789.104[/COLOR][COLOR= #007700],
);[/COLOR]
[COLOR= #0000BB]$ip[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]123.456.789.105[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// of net hoe je de ips in de array wil zetten[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][URL="http://www.php.net/in_array"]in_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]$ip[/COLOR][COLOR= #007700]))
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]U mag niet bekijken[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
?>
Hier je scripts, die de IPs wel mogen bekijken
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
?> als het goed is werkt het

@Marijnnn: je kunt beter dit doen:
[COLOR= #0000BB]<?[/COLOR]php
[COLOR= #0000BB]$ip[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR]
[COLOR= #DD0000]123.456.789.101[/COLOR][COLOR= #007700],[/COLOR]
[COLOR= #DD0000]123.456.789.102[/COLOR][COLOR= #007700],[/COLOR]
[COLOR= #DD0000]123.456.789.103[/COLOR][COLOR= #007700],[/COLOR]
[COLOR= #DD0000]123.456.789.104[/COLOR][COLOR= #007700],
);[/COLOR]
[COLOR= #0000BB]$ip[/COLOR][COLOR= #007700][] =[/COLOR] [COLOR= #DD0000]123.456.789.105[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// of net hoe je de ips in de array wil zetten[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][URL="http://www.php.net/in_array"]in_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]$ip[/COLOR][COLOR= #007700])))[/COLOR]
[URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]U mag niet bekijken[/COLOR][COLOR= #007700]);[/COLOR]
?>
Hier je scripts, die de IPs wel mogen bekijken Ik weet niet waarvoor hij het wil gebruiken, maar ik nam dus aan dat hij het in zijn template wilde gebruiken om zo paginas af te schermen en dan staat het niet zo mooi als de pagina afbreekt.
Waarom geen htaccess-based?
Werkt net zo goed
Werkt net zo goed