The visitor blocking facilities offered by the Apache Web Server enable us to deny access to specific visitors, or allow access to specific visitors. This is extremely useful for blocking unwanted visitors, or to only allow the web site owner access to certain sections of the web site, such as an administration area.To set-up visitors restrictions and blocking, create a .htaccess file following the main instructions and guidance which includes the following text: Read more…
Ever wonder how to easily change your IP address without having to go through the daunting task of going through the system menu? If you can open a Linux Shell and type on a keyboard, then you can change your IP Address with one command line.
- Turn on the computer in which you are running a Linux distribution. Once started, open a Shell, which is similar to a command prompt screen in Windows.
- To change the IP address you will need to use the “ifconfig” command. Also, you should have an IP address in mind that is different than your current IP address.
- With an IP address in mind, type: “ifconfig eth0 192.168.X.XXX up” without the quotation marks and placing your numbers in for the Xs. Keep in mind that a normal IP address will begin 192.168 and then you should normally have one number then two to three numbers for the last section of the address
- Press “Enter” to run the command and change your IP address. Once it is completed you should check the change by simply typing “ifconfig” without the quotation marks, and pressing “Enter.” This will display your current IP address so you can verify that is was changed to the one you entered in Step 3.
Many people wish to change their IP address for many different reasons. Whether it’s changing it due to you being banned from a site or due to constant flooding or spam you’re being the victim of. I’ll show you how to change your IP Address in less than one minute!
- To release and renew your IP address:
Go to “Start > Run” and type “cmd” (without quotation marks), then select “OK”
- Type “ipconfig /release” (without quotation marks) and press “Enter”
- Once the prompt returns, type “ipconfig /renew” (without quotation marks), then hit “Enter,”
- Last, type “exit” (without quotation marks) then press “Enter” to close the window.
- Congrats, you now have a new IP address!
It’s an easy to get the IP address for a domain name using PHP’s gethostbyname() and gethostbynamel() functions. Here in this post looks at some examples of using the gethostbyname() function in PHP to get a single IP address for a hostname.
Example domains used
Examples in this post use www.cnn.com and www.electrictoolbox.com. At the time of the writing of this post, www.cnn.com resolves to 4 possible IP addresses as follows: Read more…
This is a simple PHP tutorials and script for getting remote visitors with their IP Address. With this tracking your visitor is very easy and simple with PHP. PHP has a set of global variables. Among them, we use $_SERVER variable to get an IP address of a remote computer. REMOTE_ADDR is the constant that is used to get the IP Address of a remote computer. Read more…