Vol de photo sur le Net ?

78 x served & 13 x viewed

Il me faudrait trouver un plugin WordPress qui ajoute automatiquement un logo ou le nom de mon site en filigrane ( Watermark )  …

Exemple n°1 : http://texansonlineofficialshop.com :

Exemple n°2 : http://eka.letsfixerimages.club :

WordPress : PWA plugin pour des AMP stories

En passant

77 x served & 9 x viewed

Un nouveau plugin vient de sortir PWA (Progressive Web App ) : https://wordpress.org/plugins/pwa/ , il permet de faire des AMP stories.

A suivre.

CYBER-NEURONES : Registres des connexions échoués

80 x served & 20 x viewed

Registres des connexions échoués depuis 2016 sur CYBER-NEURONES :

Voici la liste des IPs ( à mettre en liste noire ) :

   6 223.29.230.*
   6 62.133.27.*
   6 78.99.183.*
   6 92.169.41.*
   9 202.110.187.146
  10 185.234.217.11
  12 134.19.230.229
  12 82.236.11.*
  17 222.86.214.132
  18 114.141.189.194
  18 122.225.238.98
  19 138.122.111.28
  19 58.250.204.187 : China Unicom
  20 42.228.1.34 : China Unicom
  21 58.16.113.239 : China Unicom 
  24 87.103.212.56 : Russia Kemerovo branch of old OJSC "Sibirtelecom"
  32 125.77.72.197 : China Telecom
  33 186.195.227.94 : Brazil Redenilf Servicos de Telecomunica??es Ltda
  37 221.2.137.143 : China Unicom .
  57 222.223.101.58 : China Telecom . 

Le mieux est de filtrer tout ce qui vient de chine … misère.

Voici la liste des usernames :

   1 0x1999
   1 123
   1 123123
   1 1234
   1 123456
   1 ARIAS-FREDERIC
   1 ARIAS-FREDERICORG
   1 AnonymousFox
   1 CYBER-NEURONES
   1 Frederic
   1 Range"
   1 WilliamGog
   1 admin2
   1 adminCYBER-NEURONES
   1 adminarias-frederic
   1 administrador
   1 alannagodfrey
   1 arias-frederic.org
   1 arias-frederic_admin
   1 arias-fredericorg
   1 asd
   1 dexterpinckney
   1 frederic
   1 gabapentinNiG
   1 guest
   1 hungmatthias2
   1 root
   1 schatzi
   1 scottasman86
   1 tracieding9491
   1 webadmin
   1 wpadmin
   1 wproot
   2 aafb5e008ded53ec.
   2 admin1
   2 demo
   2 manager
   2 testuser
   2 wpupdateuser
   3 ARIAS-FREDERIC_admin
   3 Administrator
   3 arias
   3 ariasfrederic
   3 cyber-neuronesorg
   4 5bedf89a27a817bd
   4 ad5abf6ba3fc8a49
   4 arias.1166643
   5 5bedf89a27a817bd.
   5 ad5abf6ba3fc8a49.
   5 arias.
   5 cyberneurones
   6 Admin
   6 aafb5e008ded53ec
   7 aafb5e008ded53ec.1166643
   7 cyber-neurones_admin
   8 admincyber-neurones
   9 ad5abf6ba3fc8a49.53351
  10 cyber-neurones.org
  10 cyber-neuronesadmin
  12 {login}
  42 arias-frederic
  48 administrator
  74 www
  76 test
 404 admin
 446 cyber-neurones

Voici pourquoi il faut prendre un login non basique !
 

WordPress 5.1 : Un vrai plus sur la securité !

74 x served & 18 x viewed

J’ai donc fait la mise à jours :

La dernière version va surement me permettre de ne plus utiliser WordFence, elle permet de sécuriser le site :

L’interface est vraiment simple à comprendre …

A suivre !

How to import data of WordPress (Feed RSS) to Joplin ?

101 x served & 34 x viewed

Install JOPLIN : https://joplin.cozic.net ,  and start REST API. (Easy)

Step 1 : Put this script in folder.

Step 2 : Edit the script and put your token 

Step 3 : Run the script

The script :

#
# Version 1 
# for Python 3
# 
#   ARIAS Frederic
#   Sorry ... It's difficult for me the python :)
#

import feedparser
from os import listdir
from pathlib import Path
import glob
import csv
import locale
import os
import time
from datetime import datetime
import json
import requests

#Token
ip = "127.0.0.1"
port = "41184"
token = "Put your token here"

nb_import = 0;
headers = {'Content-type': 'application/json', 'Accept': 'text/plain'}

url_notes = (
    "http://"+ip+":"+port+"/notes?"
    "token="+token
)
url_folders = (
    "http://"+ip+":"+port+"/folders?"
    "token="+token
)
url_tags = (
    "http://"+ip+":"+port+"/tags?"
    "token="+token
)
url_ressources = (
    "http://"+ip+":"+port+"/ressources?"
    "token="+token
)

#Init
Wordpress_UID = "12345678901234567801234567890123"
UID = {}

payload = {
    "id":Wordpress_UID,
    "title":"Wordpress Import"
}

try:
    resp = requests.post(url_folders, data=json.dumps(payload, separators=(',',':')), headers=headers)
    resp.raise_for_status()
    resp_dict = resp.json()
    print(resp_dict)
    print("My ID")
    print(resp_dict['id'])
    WordPress_UID_real = resp_dict['id']
    save = str(resp_dict['id'])
    UID[Wordpress_UID]= save
except requests.exceptions.HTTPError as e:
    print("Bad HTTP status code:", e)
except requests.exceptions.RequestException as e:
    print("Network error:", e)

feed = feedparser.parse("http://www.cyber-neurones.org/feed/")

feed_title = feed['feed']['title']
feed_entries = feed.entries

numero = -2
nb_entries = 1
nb_metadata_import = 1

while nb_entries > 0 : 
  print ("----- Page ",numero,"-------")
  numero += 2
  url = "http://www.cyber-neurones.org/feed/?paged="+str(numero)
  feed = feedparser.parse(url)
  feed_title = feed['feed']['title']
  feed_entries = feed.entries
  nb_entries = len(feed['entries'])
  for entry in feed.entries:
     nb_metadata_import += 1
     my_title = entry.title
     my_link = entry.link
     article_published_at = entry.published # Unicode string
     article_published_at_parsed = entry.published_parsed # Time object
     article_author = entry.author
     timestamp = time.mktime(entry.published_parsed)*1000
     print("Published at "+article_published_at)
     my_body = entry.description
     payload_note = {
         "parent_id":Wordpress_UID_real,
         "title":my_title,
         "source":"Wordpress",
         "source_url":my_link,
         "order":nb_metadata_import,
         "user_created_time":timestamp,
         "user_updated_time":timestamp,
         "author":article_author,
         "body_html":my_body
         }
     payload_note_put = {
         "source":"Wordpress",
         "order":nb_metadata_import,
         "source_url":my_link,
         "user_created_time":timestamp,
         "user_updated_time":timestamp,
         "author":article_author
         }

     try:
         resp = requests.post(url_notes, json=payload_note)
         resp.raise_for_status()
         resp_dict = resp.json()
         print(resp_dict)
         print(resp_dict['id'])
         myuid= resp_dict['id']
     except requests.exceptions.HTTPError as e:
         print("Bad HTTP status code:", e)
     except requests.exceptions.RequestException as e:
         print("Network error:", e)

     url_notes_put = (
    "http://"+ip+":"+port+"/notes/"+myuid+"?"
    "token="+token
)
     try:
         resp = requests.put(url_notes_put, json=payload_note_put)
         resp.raise_for_status()
         resp_dict = resp.json()
         print(resp_dict)
     except requests.exceptions.HTTPError as e:
         print("Bad HTTP status code:", e)
     except requests.exceptions.RequestException as e:
         print("Network error:", e)