Welcome To Snipplr
Everyone's Recent Snippets Tagged ip
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
* Usefull as shell command and everyting else
`get-ip='egrep -o "[0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4}"'`
`get-ipport='egrep -o "[0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4}[0-9 :]+" | sed -e "s/ //g"'`
0
912
posted 8 years ago by dbiesecke
Checking customer's IP address if is match with billing address is one of the simple steps in order to prevent fraud. If you are looking for sample codes to validate that the transaction is being requested by the real cardholder, see below.
0
1163
posted 8 years ago by Hexahow
Sometimes you may want to show the visitor that you are aware of their IP address. You can do so by using few lines of code as shown here. Place the code in any place of your page, where you want the IP address to appear:
0
1070
posted 9 years ago by apphp-snippets
Tripwire is a special part of motion detection that can be used to monitor and alert on specific changes. More specifically: tripwire means the detection of intrusion.
This code snippet presents how to create a C# software by using prewritten comp...
0
1433
posted 9 years ago by chewie-wookiee
Hello Guys,
This short ASP.NET code snippet is intended to provide you a brief review on how to add SMS functionality to your website. You will see, this is a very simple but smart solution. This ASP.NET application is able to send messages by usi...
0
1298
posted 9 years ago by Gupta86
To retrieve the weather forecast for your location based only on your current IP, the full tutorial will have the following 5 sections (http://bit.ly/1A5Y651), that will:
- Describe elements needed for weather forecast retrieval
- Describe the weat...
0
1069
posted 9 years ago by Hexahow
Use the code below to lookup IP address in bulk using C-Sharp programming languages and IP2Location MySQL database. In this tutorial, we use the IP2Location LITE database to lookup country of origin from the visitor's IP address. Free databases are a...
0
1436
posted 9 years ago by Hexahow
The code below can be used to lookup IP address in bulk in return of geolocation information using PHP programming languages and MySQL database. In this tutorial, we use the IP2Location LITE database to lookup country of origin from the visitor's IP...
1
1358
posted 9 years ago by Hexahow
Use the code below to convert the IP address of your web visitors and lookup for their geographical location, e.g. country, state, city, latitude/longitude, ZIPs, timezone and so on. Free database can be downloaded at http://lite.ip2location.com.
0
3462
posted 9 years ago by Hexahow
Use the code below to convert the IP address of your web visitors and lookup for their geographical location, e.g. country, state, city, latitude/longitude, ZIPs, timezone and so on. Free database can be downloaded at http://lite.ip2location.com.
0
1974
posted 9 years ago by Hexahow
Code is meant to show the real ip address, in case if user is using a proxy. Most of the time $_SERVER["REMOTE_ADDR"] do not work correctly due to the proxy setting of user. It's a nice solution.
0
978
posted 10 years ago by KhanOf21Century
Simple PHP functions to validate url, email address and ip, functions will return TRUE for valid data and FALSE for invalid data.
0
1164
posted 10 years ago by codingforever99
This simple function allows you to getect a country code and city of your site visitors, using the www.geoplugin.net service. You may use this data to add default values in registration form or use it for any other purposes, like blocking access to y...
0
1338
posted 11 years ago by apphp-snippets
A python IP generator works randomly. This project was made out of boredom. Have fun!
For non obfuscated code, contact me at [email protected]
1
907
posted 11 years ago by madfedora
This can be used to get arp mac address from a ip address. Remember that MAC addresses are in arp tables (volatile), that's why a ping is done first. But i don't know if timing between ping call and arp call is enought to make sense (of pinging).
0
1668
posted 11 years ago by someguy123
This code allows to get the IP address from which the user is viewing the current page.
0
1123
posted 11 years ago by apphp-snippets
The following codes populate the country list into dropdown box based on browser's languages. The country information is getting from geolocation.com
0
965
posted 11 years ago by Hexahow
This function performs several checks to make sure it's getting the correct IP address.
1
1218
posted 12 years ago by o0110o
A small snippet to parse out proxies from http://hidemyass.com/proxy-list/
0
927
posted 12 years ago by icinNet
Enter any suspicious IP address that you wanted to check into the form field and press the "LOOKUP" button
1
2575
posted 12 years ago by DNSBL
Clientside script for a personal DynDNS service. Works together with a server-side script written in php [ http://snipplr.com/view/55482/own-dyndns-service-serverside-script ] .
You may want to set up a cron jop to run this script every x minutes.
0
880
posted 13 years ago by madc
Serverside script for a personal DynDNS service.
Works together with a clientside script written in ruby [ http://snipplr.com/view/55484/own-dyndns-service-clientside-script/ ] .
Redirect to current saved IP(http, port 80):
http://dynDns.yourver...
0
959
posted 13 years ago by madc
This piece of code is at least ten years old and I don't remember exactly, where I have found it. Probably it had been stolen from my friend VeZyR;)
0
781
posted 13 years ago by michaJlS