For those who are getting ::1, just use 127.0.0.1 instead of localhost in your URL.
@IrakliKhakhviashvili10 жыл бұрын
thanks
@Arachne2610 жыл бұрын
I was just wondering about this, thanks..
@AbhayaSinghPandey8 жыл бұрын
I was wondering how is it possible. Anyway kudos .
@abdulqudoos77077 жыл бұрын
i didn't get ip address, if i use 1 equal mark if($ip=$ip_address) i get this your IP, ::1 has been blocked
@abdulqudoos77077 жыл бұрын
can u help me
@captainhampton13 жыл бұрын
@mezigpo Some people might be stumbling on these videos for the first time. It's a nice short introduction, much better than many other youtubers who have some elaborate introduction. Plus, he's providing free and helpful content so give him a break.
@MrMarkgyuro5 жыл бұрын
really useful videos : ) a php beginner
@BaliLandandVilla12 жыл бұрын
::1 is IPv6 address equal to 127.0.01 as in IPv4
@fakecheese9413 жыл бұрын
Wouldn't it be better if you used: if (in_array($ip_address, $ip_blocked)) { die('Your IP address has been blocked.') } ??
@BlueDragon-tl2qx8 жыл бұрын
great job but one issue that I am facing is there away you can tell me how I can put into my MySQL to get visitors IP addresses when they come on my site that would be really helpful other wise this way would be kinda useless I like this because I can ban them in 3 different ways which I consider more protected anyways any help would do thank you
@xXxBladeStormxXx12 жыл бұрын
Oh god! The ::1 has returned to haunt me D:
@bigfuzzydog11 жыл бұрын
Question. I have a couple websites hosted by Blue Host - the CMS is wordpress. I do want to block a few IIP addresses - does anyone know where I should put it on my sites? Would it be Appearences - - >Editor? I know - pretty stupid question.
@charismatubagus13 жыл бұрын
@Lindhe94 So How can I make it to display 127.0.0.1?
@a1appbuilder6 жыл бұрын
I have ip_address in my database bigint 50 . Using your code I get the $ip_address = $_SERVER['REMOTE_ADDR']; now how do I get it in ip_address to save it in the database. mysqli_query($conn,"INSERT INTO history (date,action,data,ip_address)VALUES(NOW(),'Login','$user')");//or die(mysqli_error());
@mohammedrameeson70763 жыл бұрын
welcome Is this code okay?
@TheRijintube11 жыл бұрын
For those who have their IP address as ::1 use this as $ip_blocked = array('::1','100.100.100.100');
@BUDDY_7866 жыл бұрын
Can i execte this as localhost/index.php ?
@TheJ0Ost12 жыл бұрын
Why, if there is a better way, do you tell us this way to get an IP adres?
@Madgod71111 жыл бұрын
Switch the address in the address bar from localhost/dir/file.php to 127.0.0.1/dir/file.php
@jorossbarredo12 жыл бұрын
in IPV6 (internet protocol version 6), ::1 is the same as 127.0.0.1
@oscheka7 жыл бұрын
how to convert from ::1 to 127.0.0.1?
@himelsarkar1376 жыл бұрын
Change cpanel ip adress random ly ?
@jamietjeh10 жыл бұрын
you can also use this as an replacement of an .htaccess file by dooing as followed hope this helped some of you out :)
@shekelboi8 жыл бұрын
thx, great vid
@drcod3r3297 жыл бұрын
we could use in_array function much easier :)
@xXxGnuVirusxXx12 жыл бұрын
trust me he does
@mezigpo13 жыл бұрын
OK.. we already know you're Alex .. You don't need to say it on every video in the beginning
@NourdinOuboullah13 жыл бұрын
good tutorial i like it
@xxiRaQiAtheistxx12 жыл бұрын
Hi Alex :) Thank you Alex
@austinch13 жыл бұрын
mine is ::1 not 127.0.0.1
@xXxBladeStormxXx12 жыл бұрын
These videos aren't meant to be seen as a series. While they can be seen in order, they are meant for reference. So yeah, he does need to say that at the beginning of every video. And even if he didn't have to, it's his video so it's his choice. So don't try to teach him what to do, just watch the video say thanks and GTFO.
@johnmart0911 жыл бұрын
my ip address is ::1?
@shohanur_rifat6 жыл бұрын
mine too
@SuperNerdPride12 жыл бұрын
I think not everyone watches every single video, made by Alex..
@lindhe13 жыл бұрын
@tletable On Ipv6 127.0.0.1 is ::1 (learned from thenewboston btw)
@ShinichiKudo01211 жыл бұрын
u simply don't use arrays for things like that bro , u use database , so it's a bit complicated than that ... , u need to access database , get the blocked IPs , then u can compare the given IP to the blocked IPs from database , then there u go