Skip to main content

You are here

Curl

Identifying remote web servers

Another awesome cURL feature. Option -I just downloads an http header, helping identify the remote web server.

[email protected]:~$ curl -I abaltazar.org
HTTP/1.1 200 OK
Date: Wed, 07 Dec 2011 04:04:41 GMT
Server: Apache
X-Pingback: http://abaltazar.org/wordpress/xmlrpc.php
Content-Type: text/html; charset=UTF-8

Awesome Applications: 

Monitor your public IP

My simple yet effective home public IP monitoring script.

#!/bin/bash

current_ip="YOURIPHERE"
ip=`curl -s ifconfig.me`

if [ "$current_ip" != "$ip" ] && [ $ip != "" ]
then
	echo "New IP detected: $ip" | mail -s "Public IP has been changed" [email protected]
fi

Programming: 

Awesome Applications: 

Premium Drupal Themes by Adaptivethemes