Showing posts with label IP. Show all posts
Showing posts with label IP. Show all posts

Friday, April 24, 2015

Prevent accessing XAMPP, Wamp , any server localhost from another local PC by IP



use the commands given in image

1.   insert : $ su
2.   insert password: *******
3.                # cd/etc/apache2/
4.   now there is a file for edit in apache editing
5.   comment the "require all granted "
6    Add "Require ip 127.0.0.1"
7    restart apache 
8                              # sudo service apache2 restart



Happy coding :)

nobody can check your directory by your IP

Monday, November 24, 2014

IP store in a File

keep IP  from visitors and place them on a file.


<?php
$file = fopen("ip.txt","a");
$ip=$_SERVER['REMOTE_ADDR'];
echo fwrite($file,$ip);
fclose($file);
?> 
this store in a file as name ip.txt
("ip.txt","a"); 
the second parameter can use "w" if you want only write mode 
"a" stands for append mode .

How to Host a Laravel Project on Hostinger’s hPanel: A Step-by-Step Guide

How to Host a Laravel Project on Hostinger’s hPanel: A Step-by-Step Guide If you're looking to host a Laravel project on Hostinger’s hPa...