Toegang Blokkeren

Gestart doorRootzz6 reacties21 weergaven

7 berichten · pagina 1 van 1

Rootzz

Lid · Topicstarter

Berichten
1.245
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hoe kan ik op mijn website Ips de toegang blokkeren?
0
Berichten
5.795
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php
$array[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]ip1[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]ip2[/COLOR][COLOR= #007700]);[/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]$array[/COLOR][COLOR= #007700])) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Je hebt geen toegang![/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700];
}[/COLOR]
?>


dit moet dan boven aan je script/site
0
Berichten
1.054
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Waarom niet gewoon met .htaccess
0
Berichten
1.104
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Als je een directadmin kun je aan iemand Ip aanvragen. xD dus dan je hem blokeren via website van je hostsmile
0
Berichten
1.157
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Daiman schreef:
[COLOR= #0000BB]<?php
$array[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]ip1[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]ip2[/COLOR][COLOR= #007700]);[/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]$array[/COLOR][COLOR= #007700])) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Je hebt geen toegang![/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700];
}[/COLOR]
?>
dit moet dan boven aan je script/site

Dat werkt
0
Berichten
3.788
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ilyasftw schreef:
Eerdere citaten tonen
Daiman schreef:
[COLOR= #0000BB]<?php
$array[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]ip1[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]ip2[/COLOR][COLOR= #007700]);[/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]$array[/COLOR][COLOR= #007700])) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Je hebt geen toegang![/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700];
}[/COLOR]
?>
dit moet dan boven aan je script/site
Dat werkt

Wat is dat nou voor vreselijk zinlose bijdrage...
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren