hidden IP
- Started
- Last post
- 18 Responses
- anzelina
is there a way to block hidden IPs from visiting a url?
is there even such a thing as a hidden IP?
i don't know techno-speak.
please help me!
- ldww0
you can block certain ip or a range with .htaccess, so maybe if there is none.
- ldww0
you can block certain ip or a range with .htaccess, so maybe if there is none.
- anzelina0
the problem is that there is no ip...
it's like, blocked or something.
sorry to be vague but i don't want to get into details...
- UndoUndo0
you can detect if a user or browser is trying to hide their IP. so can do a redirect if they are hidding it.
you can use $http_server_vars to capture them.
- anzelina0
undo, thank!
how do i do this?i am a bit thick when it comes to this kind of thing.
- ldww0
in php
if (empty($_SERVER['REMOTE_ADDR'] || !$_SERVER['REMOTE_ADDR']){
header('Location: goaway.php');
}
- UndoUndo0
Idww's example looks good
- anzelina0
hahahaha
okay, where do i put that?
remember i am an idiot
- ldww0
this must go at the top of your page
and follow it. the file must then be saved as *.php
- anzelina0
if i save it as .php will the rest of my page still work? it is html.
sorry i'm a dummy
- ldww0
yes, only the part inside will be read as php code
- anzelina0
yay! thanks.
- ldww0
whoops its stripping my crap
(?php my code here ?) the rest of your page here
only the 'my code here' will be read as php code.
switch the ('s for greater then/less then
- UndoUndo0
what are you worried about with hidden IP's??
did you get the script to work
- ldww0
if you think about it thou.
peopole who know how to hide their IP would most likely know how to spoof their IP as well
- ribit0
they could use a proxy server like http://www.proxify.com
- fate_0
There's no such thing as a hidden IP. I can't believe you all had such a long conversation about a non-existent topic.
Ribit is right, people may use a proxy (effectively disguising their real IP) and you can capture that like a regular IP. But there's no way to trace it back unless you have access to the proxy machine's logs.
- anzelina0
thanks for all your help.
i ended up just putting up a .htaccess thing to create a username + password