summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2013-05-10 02:09:39 +0200
committerPhilipp Hagemeister <[email protected]>2013-05-10 02:09:39 +0200
commitd929dd31d1d7c1a7a59de0d67ab24dc78c903953 (patch)
treebbc09b12f8505056bdf5ae90696c88f7a341bfcf
parent49698bfaa36972e9f425c4a2aa92e66f376d33dd (diff)
downloadyoutube-dl-d929dd31d1d7c1a7a59de0d67ab24dc78c903953.tar.gz
youtube-dl-d929dd31d1d7c1a7a59de0d67ab24dc78c903953.zip
IP check
-rw-r--r--.htaccess2
-rw-r--r--ip.php3
2 files changed, 5 insertions, 0 deletions
diff --git a/.htaccess b/.htaccess
new file mode 100644
index 000000000..b1dd42786
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1,2 @@
+RewriteEngine On
+RewriteRule ^ip/?$ ip.php
diff --git a/ip.php b/ip.php
new file mode 100644
index 000000000..46b186613
--- /dev/null
+++ b/ip.php
@@ -0,0 +1,3 @@
+<?php
+header('Content-Type: text/plain');
+echo $_SERVER['REMOTE_ADDR'];