can anyone tell me how to block one directory and its subdirectories for all but two ips (lets say 123.123.123.123 & 124.124.124.124) via htaccess?
thanks for help
cheers
rush
limit a directory to two ips via .htaccess
limit a directory to two ips via .htaccess
3 (!) Jahre warten reichen mir. Ich bin erst mal weg.
the i get this errormessage:
any idea?
cheers
rush
Code: Select all
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, info@bla.de and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
cheers
rush
3 (!) Jahre warten reichen mir. Ich bin erst mal weg.
Hi rush,
this is the info selfhtml 8.1 gave me :
http://de.selfhtml.org/servercgi/server/htaccess.htm
http://de.selfhtml.org/projekt/kontroll ... logdateien
What says your logfiles?
Joachim
this is the info selfhtml 8.1 gave me :
http://de.selfhtml.org/servercgi/server/htaccess.htm
http://de.selfhtml.org/projekt/kontroll ... logdateien
What says your logfiles?
Joachim
You can block articles too for all ip's, except these 2, by putting it in the main block of your template...
[PHP]if(
(($_SERVER['REMOTE_ADDR']) != "123.123.123.123") &&
(($_SERVER['REMOTE_ADDR']) != "124.124.124.124")) {
header ("location: http://www.domain.com/index.php");
exit;}[/PHP]
[PHP]if(
(($_SERVER['REMOTE_ADDR']) != "123.123.123.123") &&
(($_SERVER['REMOTE_ADDR']) != "124.124.124.124")) {
header ("location: http://www.domain.com/index.php");
exit;}[/PHP]