IP Address – Email shop Community https://theemailshop.co.uk/community Tue, 03 Dec 2019 10:44:14 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.3 How to ban the IP address via .HTAccess? https://theemailshop.co.uk/community/knowledge-base/how-to-ban-the-ip-address-via-htaccess/ Tue, 03 Dec 2019 10:44:14 +0000 https://theemailshop.co.uk/forum/?post_type=epkb_post_type_1&p=645 If any person is trying to hack the website and you want to block their IP Address, then you should simply add this line to your .htaccess file.

Order allow, deny
Deny from IP-ADDRESS
Allow from all

Replace “IP address” with that address you need to block.

]]>
How would you restrict the directory access by IP address? https://theemailshop.co.uk/community/knowledge-base/how-would-you-restrict-the-directory-access-by-ip-address/ Tue, 03 Dec 2019 10:32:53 +0000 https://theemailshop.co.uk/forum/?post_type=epkb_post_type_1&p=589 If you want to make your admin areas secure from hackers, it’s better to allow access only from the selected IP address to the admin directory. You can just make .htaccess file in your directory where you need to restrict the access by IP Address.

For instance, if your WordPress blog has installed on the main directory such as example.com/wp-admin, it’s better to build .htaccess file in /wp-admin/.htaccess and you need to place this code, and do not forget to replace the allowed IP with your own IP address.

Order deny, Allow
Deny from all
Allow from YOUR-IP-ADDRESS-HERE

(Replace “Your-IP-Address-Here” with the IP Address)

You need to check this out by accessing your /wp-admin IP address from some other IP address that is not allowed by your .htaccess file.

]]>