usr8481
-
Posts
34 -
Joined
-
Last visited
Posts posted by usr8481
-
-
I tried this (from http://www.asiteaboutnothing.net/c_block-countries.html) and it works ok
SetEnvIf CF-IPCountry CountryCode BuzzOff=1 Order allow,deny Allow from all Deny from env=BuzzOff
thanks
does it use IPs from cloudflare database?
Strange that it works with other hostersfirst my method (<Limit GET HEAD POST>...) I decided to try because of cloudflare infromation on https://support.cloudflare.com/hc/en-us/articles/200171406-How-do-I-block-connections-based-on-country-or-countries-
If you fully want to block visitors from that country, then you would have to put rules on your server to block the country - http://www.ip2location.com/free/visitor-blocker -
I also use Cloudflare and when it's enabled rules from .htaceess don't work correctly or just don't work
for e.g.
I have in my .htaccess code to block specific country:
<Limit GET HEAD POST> order allow,deny allow from all deny from 1.11.0.0/16 deny from 1.16.0.0/14 ... </Limit>
it works okay when Clouldflare is paused (I test with proxy for the country I blocked), but it doesn't work when Cloudflare is enabled.
But that behaviour is different for other hostings - it works ok with Clouldflare enabled and disabled (paused).
Do you have any idea why there are such problems when Cloudlfare is enabled?
sorry for my English
-
-
Make sure you've spelled .htaccess correctly.
With .htaccess everyhing is normal and I tested it on another hosting.
# BEGIN W3TC Browser Cache <IfModule mod_mime.c> .........................(wordpress cache plugin's settings) # END W3TC Page Cache core # BEGIN WordPress <IfModule mod_rewrite.c> .........................(wordpress settings) </IfModule> # END WordPress order deny,allow deny from all allow from 99.99.99.99 (for e.g. my ip)
And of course I typed ip correctly, but I still doesn't have access if I use it
order deny,allow deny from all allow from 99.99.99.99 (for e.g. my ip)
or access to wp-admin (wp-login.php):
<Files wp-login.php> order deny,allow deny from all allow from 99.99.99.99 </Files>
-
order deny,allow deny from all allow from x.x.x.x (my ip)
Why this code in .htacess doesn't work properly?
It supposed to deny access for any ip but allow from specific.
But it deny access for my ip too.
I just want use next code
<files wp-login.php> order deny,allow deny from all </files>
-
I got it. Thanks for answer
-
Is it possible to disable mail service for my account to increase the memory?
-
[Solved] This Webpage Is Not Available. Err_Connection_Refused
in Customer Service
Posted
Server seems to be ok (can use ftp and phpmyadmin) - 216.218.192.170
But site doesn't work.