jnet Posted December 19, 2008 Share Posted December 19, 2008 how to restric admin pages to one ip only more security. 0 Quote Link to comment Share on other sites More sharing options...
bear Posted December 19, 2008 Share Posted December 19, 2008 Use an '.htaccess' file in your admin directory. In it, place the following: Order Deny,Allow Deny from all Allow from your.ip.goes.here 0 Quote Link to comment Share on other sites More sharing options...
jnet Posted December 19, 2008 Author Share Posted December 19, 2008 thanks I know that but I want to give a false message to any body else attemp to login like Error on line 55 bla bla:lol: 0 Quote Link to comment Share on other sites More sharing options...
bear Posted December 19, 2008 Share Posted December 19, 2008 You might have said so in the first place. Change IP to yours, admin folder and links to whatever on your own site. RewriteEngine On RewriteCond %{REMOTE_ADDR} !123.123.123.123 RewriteCond %{REQUEST_URI} ^/admin_folder/ RewriteRule (.*) http://www.domainname.com/fake_page.html [L] Untested, so test it. 0 Quote Link to comment Share on other sites More sharing options...
jnet Posted December 19, 2008 Author Share Posted December 19, 2008 thanks that is what I mean so i remove your first suggestion Order Deny,Allow Deny from all Allow from your.ip.goes.here and replace it with this one? I did but does not work 0 Quote Link to comment Share on other sites More sharing options...
bear Posted December 19, 2008 Share Posted December 19, 2008 Did you change the things I said needed changing so that it's your information? Is it exactly the same as I gave, with your changes included)? 0 Quote Link to comment Share on other sites More sharing options...
jnet Posted December 19, 2008 Author Share Posted December 19, 2008 RewriteEngine On RewriteCond %{REMOTE_ADDR} !myip.typed.here RewriteCond %{REQUEST_URI} ^/admin/ RewriteRule (.*) http://www.yahoo.com/[L] I put exactly the above in a clean .htaccess file uploaded it into my whmcs root (((it did not work))) then I put it in whmcs/admin ((it dod not work))) clean htaccess nothing else in it 0 Quote Link to comment Share on other sites More sharing options...
bear Posted December 19, 2008 Share Posted December 19, 2008 So,you're saying you placed your IP in the second line, and nothing happened? ..."!" means "not"... 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.