IP block
-
how can i block an ip address in BPS
-
You can add IP blocking .htaccess code to BPS Custom Code. http://forum.ait-pro.com/forums/topic/htaccess-block-ip-address-block-access-to-files-by-ip-address/
Thanks so in CUSTOM CODE BOTTOM HOTLINKING/FORBID COMMENT SPAMMERS/BLOCK BOTS/BLOCK IP/REDIRECT CODE
Just add
# BLOCK/FORBID Spammers etc Order Allow,Deny Deny from 86.138.90.10. Allow from allplus add more as and when required
You have added an extra dot after the IP address.
IP addresses use this format.
xxx.xxx.xxx.xxx
There will always be 4 octets in an IP address and each octet is separated with a dot. If you want to block all IP addresses in a range then you would use 3 octets. Deny from 99.88.77. will block all IP addresses from 99.88.77.1 to 99.88.77.256Example of adding additional IP addresses
# BLOCK/FORBID Spammers etc Order Allow,Deny Deny from 86.138.90.10 Deny from 99.88.77. Deny from 55.44.33. Allow from allyes sorry that dot was an error
like so# BLOCK/FORBID Spammers etc Order Allow,Deny Deny from 86.138.90.10 Allow from allYes, that is correct.
Appreciate the help
i have
# Protect wp-login.php from Brute Force Login Attacks based on Server Protocol # All legitimate humans and bots should be using Server Protocol HTTP/1.1 RewriteCond %{REQUEST_URI} ^/wp-login\.php$ RewriteCond %{THE_REQUEST} HTTP/1\.0 RewriteRule ^(.*)$ - [F,L] # BLOCK/FORBID Spammers etc Order Allow,Deny Deny from 95.211.156.228 Deny from 178.162.199.35 Deny from 178.162.199.78 Deny from 178.162.199.70 Deny from 95.211.159.93 Allow from allIn place but these ips still show on my stat counter?
Are the Stats…
…a WordPress plugin?
…Google Analytics?
…a Stats feature in your web host control panel?
…a 3rd party Stats application?Test to make sure your IP address code is working correctly. Add your IP address and see if you are blocked. Use FTP or your Web Host Control Panel to remove your IP address after testing.
If your IP address is shown in your stat counter then whatever it is [one of the things listed above] it is recording / logging all HTTP Response Status Codes: 200, 403, etc.
I will check, i,m using
http://statcounter.com/plugin
If i block myself how can i access the site to remove the code?Use FTP or your Web Host Control Panel to remove your IP address after testing.
you mean manually remove via ftp from the htaccess file?
Or you can use a Proxy instead like hidemyass.com and block the IP address that the Proxy assigns to you.
they are all ips owned by Leaseweb, Germany, Netherlands USA etc
proxy may be better will give it a go later and get back with results thank you
The topic ‘IP block’ is closed to new replies.