IP – Email shop Community https://theemailshop.co.uk/community Wed, 04 Dec 2019 06:42:51 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.3 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-2/ Wed, 04 Dec 2019 06:42:51 +0000 https://theemailshop.co.uk/forum/?post_type=epkb_post_type_1&p=1359 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 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.

]]>
How to ban the IP address via .HTAccess? https://theemailshop.co.uk/community/knowledge-base/how-to-ban-the-ip-address-via-htaccess-2/ Wed, 04 Dec 2019 06:34:31 +0000 https://theemailshop.co.uk/forum/?post_type=epkb_post_type_1&p=1324 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 blacklist an IP address to deny its access to your website? https://theemailshop.co.uk/community/knowledge-base/how-would-you-blacklist-an-ip-address-to-deny-its-access-to-your-website/ Wed, 04 Dec 2019 06:27:30 +0000 https://theemailshop.co.uk/forum/?post_type=epkb_post_type_1&p=1292 A user can lock their directory with a password via the cPanel “Password Protected Directories” icon.

 

  • Sign in to your cPanel account.
  • Click ‘IP blocker’ in the security section

 

  • Find ‘Add an IP or range’, and enter the IP address you want to block
  • Press the ‘Add’ button

 

Check out the example:

Single IP Address: 192.168.0.1
Range: 192.168.0.1-192.168.0.40
Implied Range: 192.168.0.1-40
CIDR Format: 192.168.0.1/32
Implies 10.*.*.* — 192.

]]>