fercher
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Blocked countries an updatesI have this PHP code at the top of my functions.php of my child theme:
/*
add_action(‘init’, function () {
$blocked = [‘AZ’,’BG’,’BR’,’BY’,’CN’,’CO’,’FR’,’GB’,’HK’,’ID’,’IN’,’KR’,’LT’,’LV’,’MD’,’MX’,’NL’,’RO’,’RU’,’SG’,’TR’,’UA’,’VN’,’ZA’,’ZZ’];
$ip = $_SERVER[‘REMOTE_ADDR’] ?? ‘127.0.0.1’;
$transient_key = ‘geoip_cc_’ . md5($ip);
$cc = get_transient($transient_key);
if (!$cc) {
$json = @file_get_contents(“http://ip-api.com/json/{$ip}?fields=countryCode”);
$data = json_decode($json, true);
$cc = $data[‘countryCode’] ?? ‘ZZ’;
set_transient($transient_key, $cc, 24 * HOUR_IN_SECONDS);
}
if (in_array($cc, $blocked)) {
wp_die(“Access denied – 403 Forbidden”, [‘response’ => 403]);
}
});
*/(/* and */ are only for the text here).
Forum: Fixing WordPress
In reply to: Cannot change permlink and timestampChatGPT pointed out the problem during the dialogue: yes, it was a JavaScript issue.
I had this overly strict rule in my .htaccess:RewriteCond %{REQUEST_URI} (.git|.env|^.core.js$) [NC]
RewriteRule .* - [F]
Error: core.js was blocked.@threadi and @jluizsouzadev, thank you for your support.
Forum: Fixing WordPress
In reply to: Cannot change permlink and timestamp@jluizsouzadev
thx for your proposal.But I think that is not the reason.
If I call my pages with Torbrowser, I have no problem with different hosts and IPs.I think I have locked out your provider in my .htaccess.
I have locked out many IPs and bots.Forum: Fixing WordPress
In reply to: Cannot change permlink and timestamp@threadi
thx for your proposals; none of them solves my problem.
I shall look for possible solutions in www, and if I have success, I shall show it here.Forum: Fixing WordPress
In reply to: Cannot change permlink and timestampForum: Plugins
In reply to: [WordPress Importer] WordPress Importer: cannot import iframesProblem solved with older SQL database and “handwork”.
As search engines say: iFrame in XML is not good.Forum: Plugins
In reply to: [NinjaScanner - Virus & Malware scan] Ninja Scanner and Ninja Firewall“String.fromCharCode(97, 106, 97, 120, 67, 111, 117,”
is highlited as suspicious in the new scan.Forum: Plugins
In reply to: [NinjaScanner - Virus & Malware scan] Ninja Scanner and Ninja FirewallYes, I see it in some lines, for example:
29/Jun/19 12:52:25 #6615384 CRITICAL 115 35.197.206.142 POST /index.php – Cross-site scripting – [POST:wp-piwik = manually <script async=true type=text/javascript language=javascript>var nt = String.fromCharCode(98, 122);var mb = String.fromCharCode(97, 106, 97, 120, 67, 111, 117, 110, 116, 101,…] – netzjahre.comSuch lines where listed before and after another scan, too.
Forum: Fixing WordPress
In reply to: WordPress and robots.txtthx
Forum: Themes and Templates
In reply to: [Courage] Courage and NinjaFirewallLast days I updated WP to 5.6.2 .
Now, Ninja Firewall works good,Courage theme works good.
Problem resolved.My preliminary solution: other firewall.
I will try again ninja fw with the next WP revision.
ThanksThx for your reoly.
It looks like this German page
https://webhosting.de/wordpress-backend-designfehler-layout-zerschossen/
(blue text).Forum: Fixing WordPress
In reply to: WP 4.9.8, tag-page, how to configure the order ?Stern and Joy,
thx for your hints. I didit with the plugin prposed by Joy.Problem solved.
Forum: Networking WordPress
In reply to: WordPress Multi Site, own visit IP v4 and v6Correction:
If I visit my latest subdomain (created 2019) to look or to edit, then the logfile shows my visit as IP v6 (I do not want this). I don’t guess which file I must edit to get v4.