Hi,
Currently I do not have access to ssh. Only to cpanel.
I am planning to secure the admin and mod control panel login page by restricting it using static IP address. After several hours of searching from google, I found that with my current condition, I can only use .htaccess to prevent directory access using IP restriction.
I have done with the admincp. I put .htaccess at the admincp folder with content as follow :
it does prevent access from other IP except my IP listed on the .htaccess.
The problem is that I do not find modcp folder. It is still open to public and if I create a modcp folder and add .htaccess with the same value as above, I cannot access the modcp login page. Instead, I was served by directory listing of that folder.
I also try to put the htaccess on the core/modcp/ but no luck.
Do you guys have any source or any information I could read ? Or do you have any suggestion ?
Thanks
Currently I do not have access to ssh. Only to cpanel.
I am planning to secure the admin and mod control panel login page by restricting it using static IP address. After several hours of searching from google, I found that with my current condition, I can only use .htaccess to prevent directory access using IP restriction.
I have done with the admincp. I put .htaccess at the admincp folder with content as follow :
Code:
Order Deny,Allow Deny from all Allow from xxxxx.xx.xx (MY IP) Allow from xxx.xxx.xx.xx (MY IP)
The problem is that I do not find modcp folder. It is still open to public and if I create a modcp folder and add .htaccess with the same value as above, I cannot access the modcp login page. Instead, I was served by directory listing of that folder.
I also try to put the htaccess on the core/modcp/ but no luck.
Do you guys have any source or any information I could read ? Or do you have any suggestion ?
Thanks