Tag: plugins

How to prevent Tor users from viewing or commenting on a WordPress site

The Tor network is an important tool for anonymity, privacy, and censorship circumvention, which in some countries is being fought even at the state level.

But Tor is a public tool, so it can sometimes be used for online trolling and bullying. This article will show you how:

  • prevent Tor users from commenting on your WordPress site
  • prevent Tor users from registering and logging into the site
  • prevent Tor users from viewing WordPress site

WordPress plugin to control allowed actions from the Tor network

VigilanTor is a free WordPress plugin that can block comments, browsing, and registration for Tor users.

This plugin automatically updates the list of IP addresses of the Tor network and, after configuration, automatically controls and blocks Tor users.

To install VigilanTor, go to WordPress Admin Panel → Plugins → Add New.

Search for “VigilanTor”, install and activate it.

Then go to Settings →VigilanTor Settings.

We will perform all subsequent actions on the plugin settings page.

How to disable commenting on a site from Tor

Enable two settings:

  • Block Tor users from commenting (prevent Tor users from commenting your WordPress site)
  • Hide comment form from Tor users

Now Tor users will still be able to view your site, but when they try to leave a comment, they will receive a message:

Error: You appear to be commenting from a Tor IP address which is not allowed.

How to prevent Tor users from registering and logging into the site

To prevent Tor users from registering on a WordPress site and preventing registered users from logging in from the Tor network, enable the following settings:

  • Block Tor users from registering
  • Flag users who signed up using Tor
  • Block Tor users from logging in (Useful for preventing brute for attacks)

How to Block Tor Users from Viewing a WordPress Site

Enable setting:

  • Block Tor users from all of WordPress

This setting will prevent any activity, including logging into the site, commenting, and browsing.

When trying to open a site in Tor, the user will receive a message:

Sorry, you cannot access this website using Tor.

How often does VigilanTor update the list of Tor IP addresses

The Tor network often changes IP addresses, that is, new ones are added, and old ones are removed. Once downloaded, the Tor network IP list becomes obsolete over time.

VigilanTor automatically downloads the list of Tor IP addresses and updates it automatically.

By default, the update is performed every 10 minutes. You can increase this interval to 6 hours, or enable real-time updates.

Batch image processing in GIMP

In addition to creative work with images in GIMP, sometimes you need to do fairly simple things, but with a large number of files. Sometimes even with a very large number of files. Such actions are called “Batch File Processing” or “Batch Image Manipulation” when the same operation is performed on multiple images. Such an operation can be converting, resizing, adding blur, changing sharpness, rotating an image, adding a watermark, compressing, renaming.

In order to perform the same operation on many files, we need a GIMP plugin called BIMP (Batch Image Manipulation Plugin).

How to install BIMP on Windows

To install BIMP on Windows, go to the official website and download the installation file: https://alessandrofrancesconi.it/projects/bimp/

Install like any other setup file on Windows.

How to Install BIMP on Linux

Installation on Debian, Linux Mint, Ubuntu, Kali Linux and derivatives:

sudo apt install libgimp2.0-dev libgegl-dev git
git clone https://github.com/alessandrofrancesconi/gimp-plugin-bimp
cd gimp-plugin-bimp

If you want to install the plugin only for the current user, then run the command:

make && make install

Or if you want to install the plugin for all users in the system, then run the command:

make && sudo make install-admin

Installation on Arch Linux, Manjaro, BlackArch and their derivatives:

pikaur -S gimp-plugin-bimp

You can find information about pikaur in the article “Automatic installation and update of AUR packages”.

How to use BIMP

After copying, a new item “Batch Image Manipulation…” will appear in the File menu.

When you click on this menu item, the following window will open:

Click “Add images”, you will have options to choose from:

  • Add single images
  • Add folders
  • Add all open images

In the “Output folder” specify the directory where you want to save the images after processing.

By clicking the Add button, you can select the operations that will be performed in batch mode. These operations can be combined, i.e., several actions can be performed simultaneously on a group of files.

Basic Operations:

  • Resize
  • Crop
  • Flip or Rotate
  • Color correction
  • Sharp or Blur
  • Adding a watermark
  • Change format and compression
  • Rename with a pattern
  • Other GIMP procedure

Custom File Operations in Batch Mode in GIMP

The most interesting of all the above operations is the “Other GIMP procedure” item:

That is, you can select any operations that GIMP can do, set the necessary parameters (if any). And all this can be combined with the above functions or among themselves. In general, everything is very cool.

If you have scripts in languages that GIMP supports, then those scripts are also on this menu and can be used.

How to convert many .pdf files to pictures

When trying to convert a lot of .pdf to .jpg, I ran into a difficulty – the impossibility of importing .pdf files into this plugin, because .pdf is not among the supported formats. However, it can be done. First, open all .pdf files in GIMP (you can select all the necessary files and drag them into the GIMP program window to do this quickly, in one go). Next, in the plugin, select “Add all open images”. And everything is ready – you can perform any batch processing of these files, including saving them in the desired format.

See also:

BIMP Example – Bulk convert WebP to GIMP

The WebP image format is not very convenient because not all applications support it. Therefore, it may be necessary to convert a large amount of WebP to JPG or PNG using GIMP.

From the File menu, open “Batch Image Manipulation…”.

Add files to convert – WebP format is supported.

Set a folder to save the processed images in the new format:

Click “Add” and select “Change format and compression”.

Select the format and format options (image quality):

When everything is ready, click the “Apply” button:

Wait for processing to complete:

Related: How to convert .webp images to GIMP

WordPress error “Another update is currently in progress” (SOLVED)

When updating a WordPress site, for example, when migrating to a new version of WordPress, you may encounter an error:

Another update is currently in progress.

This problem is fairly easy to fix. It is especially pleasing that this error is not fatal, unlike, this error does not prevent users from browsing the site, and the webmaster can go to the WordPress admin area to solve the problem.

Why does the error “Another update is currently in progress” occurs?

You may see this message if the site has multiple administrators and you are trying to update WordPress at the same time. In this case, wait until another webmaster completes his job.

If you are the only administrator of the site, then the cause of this error may be a failed previous update, which was interrupted, for example, due to a broken connection.

How to fix “Another update is currently in progress” with a plugin

Due to the fact that it is possible to go to the WordPress admin panel, this error can be solved using a plugin.

The plugin is called “Fix Another Update In Progress” and can be installed through the WordPress Admin Panel.

To do this, in the admin panel, go to “Plugins” → “Add New”.

Search for “Fix Another Update In Progress”, install and activate this plugin.

Then go to “Settings” → “Fix Another Update In Progress” and click the “Fix WordPress Update Lock” button.

After that, the problem should be fixed.

How to fix “Another update is currently in progress” in phpMyAdmin

If you don't want to install the plugin, then this error can be fixed by deleting one value from the database of the WordPress site. For ease of editing the database, you can use phpMyAdmin.

Start by finding the database of the site you want to fix.

Open a table named “wp_options”.

Find the line named “core_updater.lock”. To speed up the search, you can use the search in database. Search by the “option_name” column.

Click the “Delete” button.

After that, the problem will be solved.

How to add the plugin to Double Commander to support all types of archives

What archives does Double Commander support?

Double Commander is an excellent open source two-window file manager. If you want to know more details about it, then see the article “Free analogue of Total Commander”.

Double Commander, thanks to built-in plugins, out of the box supports working with the most popular archives: zip, jar, tar, bz2, tbz, gz, tgz, Izma, tlz, xz, txz and zipx.

This is a good set, but in this tutorial I will show you how to add a plugin to Double Commander, thanks to which it will support the following archives (this list also contains virtual disk files and file systems):

	7z:       [7z; ]
	APM:      [apm; ]
	Ar:       [ar a deb lib; ]
	Arj:      [arj; ]
	bzip2:    [bz2 bzip2 tbz2 tbz; * * .tar .tar]
	Cab:      [cab; ]
	Chm:      [chm chi chq chw; ]
	Hxs:      [hxs hxi hxr hxq hxw lit; ]
	Compound: [msi msp doc xls ppt; ]
	Cpio:     [cpio; ]
	CramFS:   [cramfs; ]
	Dmg:      [dmg; ]
	ELF:      [elf; ]
	Ext:      [ext ext2 ext3 ext4 img; ]
	FAT:      [fat img; ]
	FLV:      [flv; ]
	gzip:     [gz gzip tgz tpz; * * .tar .tar]
	GPT:      [gpt mbr; ]
	HFS:      [hfs hfsx; ]
	IHex:     [ihex; ]
	Iso:      [iso img; ]
	Lzh:      [lzh lha; ]
	lzma:     [lzma; ]
	lzma86:   [lzma86; ]
	MachO:    [macho; ]
	MBR:      [mbr; ]
	MsLZ:     [mslz; ]
	Mub:      [mub; ]
	Nsis:     [nsis; ]
	NTFS:     [ntfs img; ]
	PE:       [exe dll sys; ]
	TE:       [te; ]
	Ppmd:     [pmd; ]
	QCOW:     [qcow qcow2 qcow2c; ]
	Rar:      [rar r00; ]
	Rar5:     [rar r00; ]
	Rpm:      [rpm; ]
	Split:    [001; ]
	SquashFS: [squashfs; ]
	SWFc:     [swf; ~.swf]
	SWF:      [swf; ]
	tar:      [tar ova; ]
	Udf:      [udf iso img; ]
	UEFIc:    [scap; ]
	UEFIf:    [uefif; ]
	VDI:      [vdi; ]
	VHD:      [vhd; ]
	VMDK:     [vmdk; ]
	wim:      [wim swm esd; ]
	Xar:      [xar pkg; ]
	xz:       [xz txz; * .tar]
	Z:        [z taz; * .tar]
	zip:      [zip zipx jar xpi odt ods docx xlsx epub; ]

P7z-usr plugin for Double Commander

P7Z Usr is a plugin for Double Commander (DCMD) that provides 7-Zip file archiving functionality.

The plugin is open source and targets Linux platforms. Its main module is P7ZIP, a 7-Zip port for POSIX systems.

For more details on 7-Zip, see the article “Free alternative to WinRAR”.

Plugin for Double Commander that adds 7-Zip compatible archives. Formats: 7z, Udf, VHD, SquashFS, NTFS, Rpm, Chm and others. Based on the 7-Zip and P7ZIP projects.

How to install P7Z Usr on Linux

Installing Debain, Linux Mint, Ubuntu, Kali Linux and their derivatives

It assumes that Double Commander is already installed on your system. If not already, then run the following command:

sudo apt install doublecmd-gtk

For the plugin to work, the p7zip package is required, install it if it is not already on your system:

sudo apt install p7zip-full

Now let's proceed to install the plugin itself.

wget -O p7z_usr.zip https://github.com`curl -s https://github.com/ike9000e/p7z-usr/releases | grep -E -o '/ike9000e/p7z-usr/releases/download/[0-9.v]+/p7z_usr_.*_a64.zip' | head -n 1`
unzip p7z_usr.zip
rm p7z_usr.zip License.txt readme.txt
sudo mkdir /usr/lib/doublecmd/plugins/wcx/p7z_usr
sudo mv p7z_usr.ini p7z_usr.wcx /usr/lib/doublecmd/plugins/wcx/p7z_usr
sudo ln -s /usr/lib/p7zip/7z.so /usr/lib/doublecmd/plugins/wcx/p7z_usr

Installation on Arch Linux, BlackArch, Manjaro and their derivatives

It assumes that Double Commander is already installed on your system. If not already, then run the following command:

sudo pacman -S doublecmd-gtk2

For the plugin to work, the p7zip package is required, install it if it is not already on your system:

sudo pacman -S p7zip

If you have not yet installed the pikaur utility, then install it according to the “Automatic installation and update of AUR packages” article. Then it is enough to execute the command:

pikaur -S doublecmd-plugin-p7z-usr

How to activate P7Z plugin Usr in Double Commander

In Double Commander, in the menu, go to Settings → Options.

Find the Plugins section, go to WCX Plugins: and click the Add button:

Find and add the file located at the path /usr/lib/doublecmd/plugins/wcx/p7z_usr/p7z_usr.wcx

When prompted to enter the file extensions that the plugin should work with, you can enter the following (edit the list to suit your needs):

7z apm ar arj bz2 bzip2 tbz2 tbz tar cab chm chi chq chw hxs hxi hxr hxq hxw lit msi msp doc xls ppt cpio cramfs dmg elf ext ext2 ext3 ext4 img fat flv gz gzip tgz tpz gpt mbr hfs hfsx ihex iso lzh lha lzma lzma86 macho mslz mub nsis ntfs exe dll sys te pmd qcow qcow2 qcow2c rar r00 rpm 001 squashfs swf ova udf scap uefif vdi vhd vmdk wim swm esd xar pkg xz txz z taz zip zipx jar xpi odt ods docx xlsx epub

The previous list includes all supported extensions, this list is shortened by excluding office and some other formats:

7z apm ar arj bz2 bzip2 tbz2 tbz tar cab chi chq chw hxs hxi hxr hxq hxw lit msi msp cpio cramfs dmg elf ext ext2 ext3 ext4 img fat flv gz gzip tgz tpz gpt mbr hfs hfsx ihex iso lzh lha lzma lzma86 macho mslz mub nsis ntfs dll sys te pmd qcow qcow2 qcow2c rar r00 rpm 001 squashfs swf ova udf scap uefif vdi vhd vmdk wim swm esd xar pkg xz txz z taz zip zipx xpi

Plugin added - configure it by clicking the “Tweak” button.

Features and Limitations

P7Z Usr Plugin Features:

  • can view or extract all archives that the 7-zip library can open;
  • configuration via INI file (documentation is supplied with the plugin);
  • must be compatible with P7ZIP library versions P7ZIP> >= 15.09.

P7Z Usr Plugin Limitations:

  • only reading;
  • multi-volume archives are not supported;
  • no file attributes;
  • no Rar5 (only can show files in the archive).

Chromium will no longer sync passwords - what should Linux users do?

Chrome and Chromium on Linux

Everyone knows the Google Chrome web browser. Chromium is at its core. That is, Chromium is the open source web browser that Google builds on the Chrome web browser, adding proprietary (i.e. closed) code to it.

The Chrome browser is distributed by Google itself as compiled files. The Chromium browser is available as open source. For this reason, Chrome is popular among Windows users - most Windows users install binaries compiled by the authors on their system and do not see anything strange in this.

It's a little different on Linux. Linux users also download and install compiled packages, but compilation is done by the distribution maintainers using the source code of the programs. This is in line with the spirit of Linux and its licenses. Closed source packages are placed in separate repositories (package sources for installation).

For this reason, it is Chromium that is prevalent among Linux users, and Chrome is often absent from the repositories. But until recently, browsers were almost identical, so you could use Chromium just like Chrome.

The Chrome/Chromium web browser makes extensive use of Google's APIs. These APIs include, for example, password and bookmark synchronization. But Google announced that from March 2021, some APIs will be available only in the Chrome web browser, but will be disabled in Chromium, as well as in all third-party browsers that use Chromium as their basis. Disabled APIs include password synchronization.

I don't mind third-party web browsers - just imagine that if you log into your Google account on a third-party browser, thanks to the password synchronization function, it gets access to all (!) your passwords on all (!) websites. Many untrustworthy Chromium-based web browsers have sprung up about the creators of which cannot be found and whose source code is not published (sometimes despite their assurances).

But what's really annoying is that important functions will no longer work in Chromium too. From a full-fledged alternative to Chrome, Chromium has now become a web browser with limited functions.

If you don't use password sync, then you have nothing to worry about

Despite the anger of the maintainers of some distributions and threats to stop supporting or even kick the web browser out of the repositories, apparently no one will do it. Therefore, if you do not need the function of synchronizing passwords and bookmarks, then you can safely continue using Chromium on Linux.

But what about Linux users who use Chromium and need password sync and other features? Let's consider several options.

1. Stop using the password sync feature in web browsers

Yes, the fact that all your passwords are stored by strangers is bad, to put it mildly. But it's super convenient if you have more than one device (computer, phone, tablet, second computer, more virtual computers…). But if you think about it, it's like giving the keys to your apartment to an outsider, so that when you appear, he opens and closes the door to your apartment, and you don't have to climb into your pockets for keys. Conveniently. But you have no idea what happens to your keys while you are away.

Therefore, one option is to continue using Chromium, but stop using the password sync feature.

2. Switch to Firefox

Firefox is open source and also has a password sync feature. If you want to show Google that you are not satisfied with this change, you can switch to Firefox. Just in case - if your passwords are synchronized using Firefox, then it is no better or worse than if they are stored by Google.

3. Install Chrome on Linux

In fact, installing Chrome from Google itself on Linux is trivial. So you can go the same route that most Windows users do - just install a web browser with proprietary code.

In Debian, Linux Mint, Ubuntu, Kali Linux and their derivatives, to install Google Chrome, just run the commands:

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i ./google-chrome-stable_current_amd64.deb
sudo apt install -f

That's all! At the same time, during the installation of the web browser, the Google repository will be added to the list of repositories and Chrome will be updated along with the rest of the packages in the system.

In Arch Linux, Manjaro, BlackArch and their derivatives, to install Google Chrome, just run the command:

pikaur -S google-chrome

If you have not yet installed pikaur, then install it according to the instructions “Automatic installation and update of AUR packages”.

To update a web browser package, you will need to run a system update using pikaur - this command is to update both packages from the system repositories and from the AUR:

pikaur -Syu

4. Extensions for synchronization with encryption (Bitwarden)

You can install an extension like Bitwarden and continue using Chromium.

Bitwarden uses end-to-end encryption, meaning passwords are synchronized encrypted. Moreover, the source code is open even for the server, that is, you can synchronize without any third-party participants at all.

Bitwarden works with almost any device and browser you can think of: Windows, Mac, Linux; iOS and Android; Chrome, Firefox, Safari, Edge and many other niche browsers. This gives you freedom of movement, unlike browser password managers.


Which option did you choose or, perhaps, made some other decision?

How to find out the publication date of any article

The world is changing rapidly, the information published 5 years ago is rarely valuable at the present time, because everything has changed too much: the mentioned store no longer exists, and a huge shopping mall was built in its place; the procedure for obtaining a visa has changed; the proposed service has lost relevance along with the disappearance of a whole economy field.

Sometimes the information is not of interest if it was published more than 3 or even more than 1 year ago. If we are talking about current events (news), then today's morning publication deserves attention only until the appearance of today's evening publication on this issue.

Some sites provide the date of publication, but some do not. This article will show you how to find out the date a WordPress article was published, as well as the date of publication on other CMS.

Sometimes you need to find out the actual time of publication of an article if there is any doubt that the displayed date is correct – many sites practice ‘refreshing’ the date of publication of the article – after updating the material, and sometimes even without it.

1. Carefully look for the date of publication or change on the page itself

Look on the page, perhaps with Ctrl+f, for words like:

  • Last updated
  • Updated
  • Posted

Perhaps the date of publication is present, but it is not easy to find among the many elements of website design and advertising.

2. Date output on other sections of a site

Quite often, for the site owner, the date of publication of the article is not indicated, not for the reason that he wants to hide it, but simply because there was no place for it in the design template. In these cases, the publication date can be found on the main page, in the categories of the site and its other sections:

By the way, such screenshots of the entire page of the site, with support for rendering and JavaScript, you can do using this service.

3. View the source code

Many plugins in meta tags indicate information such as:

  • published_time
  • modified_time
  • updated_time


<meta property="article:published_time" content="2020-04-08T13:44:28+00:00" />
<meta property="article:modified_time" content="2020-04-08T13:44:32+00:00" />
<meta property="og:updated_time" content="2020-04-08T13:44:32+00:00" />

To simplify the search, use the keyboard shortcut Ctrl+f, because sometimes the source code is unreadable due to the fact that spaces have been removed from it (to speed up page loading).

4. Look at the folder where the images are uploaded

This method is primarily suitable for WordPress, but it cannot be ruled out that other CMS does this way (if you know, write in the comments).

The bottom line is that WordPress saves the images for this article into files of the form https://site.com/wp-content/uploads/YEAR/MONTH/PICTURE.png (for example, https://www.repairwin.com/wp-content/uploads/2019/07/image-9.png).

Please note that there is YEAR/MONTH in the path, which are quite truthful (truer than the tags above), saying that the article was created in July 2019.

Look for the string “/uploads/”, use Ctrl+f for help:

5. Search engines know the date of publication

Enter in Google a search query of the form:


Instead of PAGE_ADDRESS, specify the URL of the post whose publication date you are interested in, for example:


Yandex also knows how to do this, but instead of inurl: you need to use url:. Unfortunately, Yandex shows the publication date only for very fresh pages:


6. Look at the first comment

This is an indirect and approximate method, but it can clearly show that the indicated date of publication of the page is not true.

The point is very simple: find the first comment by date – the publication date of the article cannot be later than it.

How to display the date of publication (update) of a page. Do I need to indicate the date of publication of the article

I am calm about the presence or absence of a publication date, since a fresh date does not guarantee that it is not a copy-paste of some junk. In addition, not all topics have an expiration date and/or updated analogues. But in general, it is more pleasant when the publication date and the date of modification are present – in case you need them for some reason, then you do not need to look for them.

In WordPress, the date of the last page modification can be added using the free “WP Last Modified Info plugin” – install and activate this plugin from the WordPress dashboard.

Go to the settings page of this plugin on the “Post Options” tab. There, turn on “Enable for Posts on Frontend”:

If you want the date of the last change to be displayed at the bottom of the article (and not at the beginning), then change the setting of “Last Modified Info Display Method” from “Before Content” to “After Content”.

Save your changes.


Do you know other ways or for other CMS (not WordPress)? Great, share them in the comments – it will be interesting to discuss!

Free plugin to add ads in WordPress

How to work with Quick Adsense plugin to insert ads in WordPress

You can insert ads on the site in different ways. For example, you can edit the HTML code. I want to talk about a much simpler version, while very flexible.

There are many plugins to insert ads in WordPress. Including, there are various paid. I use a free plugin that can do everything that most webmasters need. I have been working with this plugin since 2014, i.e. at the time of writing, this is already the fifth year. During this time, the plugin has shown its reliability.

This plugin is called Quick Adsense. Do not be confused by the word AdSense in the title – you can advertise any networks. For example, besides AdSense, I use the same plugin for CPA. Previously, I used it to insert my own ads, banners from other partner networks, just alerts for users.

Install Quick Adsense

Quick Adsense is present in the official WordPress plugin repository, so it installs directly from the WordPress control panel.

During the installation of the plugin, do not confuse it with similar ones. Especially with Quick Adsense Mobile – this plugin mimics under Quick Adsense, including repeating its design. Be careful – Quick Adsense Mobile appeared relatively recently, and apart from the fact that it tries to be ‘the second Quick Adsense’ and has not been updated for a long time, there is nothing special to say about it.

How does Quick Adsense work?

This plugin has 20 slots: 10 slots for inserting ads into text (Ads on Post Body), as well as 10 slots for inserting ads into widgets (Sidebar Widget).

The slots look like windows for entering the ad network code:

If you click on the Show All button, you can see them all:

In these slots, insert the code of ad units that you want to show on your site. Do not forget to click the Save Changes button to save the changes made.

Although AdSense allows you to use the same ad code multiple times on the same page (show the same ad unit multiple times), this plugin requires each ad to be unique: ads with duplicate code can cause problems in the display of advertisements; the same ad is never shown on the page more than once.

At the top of the Quick Adsense settings page are the controls – this is where you specify where the ad units will be placed on the page:

The inscription Reset to Default Settings means reset to the initial settings – be careful with this! wink

Next comes Place up to NUMBER Ads on a page. This means the number of ads that can be used. This setting refers to the time when you could use no more than three ad units per page (I mean AdSense). Just set the maximum number (10) no matter how many blocks you will use: 1, 2, 5 or all 10.

Automatic display of ads in certain places of the site

Moving on to the most interesting – Assign position – assigning position to ad units.

Beginning of Post - means the beginning of the article, i.e. after the title, but before the text. If you want to use this location, then tick. By default, a random slot will be used (Random Ads) to change this, select a specific ad that should be inserted at the beginning of the article, for example, Ads1 - this means that the ad code from the first slot will be inserted at the beginning of the article.

Middle of Post – the middle of the article. If you want to use, check the box and select the ad that should appear in the middle. The middle is considered according to the number of paragraphs, i.e. the total number of paragraphs is taken and divided in half.

End of Post – the end of the article. Please note that the end of the article is considered the last paragraph. Different plugins can display social buttons, related articles, and so on - most likely, the ad unit will be in front of them.

right after the <!--more--> tag – immediately after the <!--more--> tag. The <!--more--> tag separates in the article the beginning of the text, which is shown, for example, on the main page as the first words of the article, to continue which you need to click the Read More button. In my opinion, this block is too close to the block at the beginning of the article and it does not suit me. If you, for example, do not use the block at the beginning of the article, then this option may be suitable for you.

right before the last Paragraph – just before the last paragraph. This block is obtained very close to the block at the end of the article. In my opinion, it is better to use only one of these blocks – either before the last paragraph, or at the end of the article.

Next come three identical points:

after Paragraph NUMBERS repeat CHECKBOX to End of Post if fewer paragraphs are found – means insert ad after the set paragraph number. Or the article is shorter and a checkbox is ticked, the ad will be inserted at the end of the article.

As you can see in my screenshot, I actively use the insertion of ad units into an article. It all depends on the specific site and conditions, but I try to make it so that between the advertising was 10-20 paragraphs of text.

Selecting WordPress pages where to show or not show ads

Next comes the Appearance block:

Here you specify which pages to display ads:

Tick on those types of pages where you want to display ads:

  • Posts
  • Pages
  • Homepage
  • Categories
  • Archives
  • Tagss
  • Place all possible Ads on these pages
  • Disable AdsWidget on Homepage
  • Hide Ads when user is logged in to WordPress – That is, do not show ads to registered users.

Be careful with the Main page – usually there are Ads in the feed, or a special arrangement of ad units is configured, because the appearance of this page is different from the pages of Articles, and the page itself is the “face” of the site.

Do not show ads to registered users is also quite a reasonable solution, i.e. regular visitors stop noticing advertising banners. If the same user regularly clicks on advertising on the same site, then these clicks will most likely will not be taken into account.


If you set up automatic placement of ad units (at the beginning of the article, after the tenth paragraph, at the end of the article, etc.), then you do not need to manually write the tags where you want to add advertising.

However, this can be useful for setting up advertisements on pages where automatic ad blocks output does not work well enough. For example, you can completely disable ads for a specific page; or you can turn off automatically displayed advertisements and indicate your places by showing ad units.

You can display ad insertion buttons next to the editor, for this you have the following options:

Show Quicktag Buttons on the HTML Edit Post SubPanel

Hide <!--RndAds--> from Quicktag Buttons

Hide <!--NoAds-->, <!--OffDef-->, <!--OffWidget--> from Quicktag Buttons

Hide <!--OffBegin-->, <!--OffMiddle-->, <!--OffEnd-->, <!--OffAfMore-->, <!--OffBfLastPara--> from Quicktag Buttons

The item Insert Ads into a post, on-the-fly contains information about tag names, which you can use to insert ad units into an arbitrary place while editing HTML code:

  1. Paste <!--Ads1-->, <!--Ads2-->, etc into the article for displaying a particular ad in the specified location.
  2. Paste <<!--RndAds--> (one or more times) into the article to display a random ad in the specified location.

Section Disable Ads in a post, on-the-fly is useful if you do not want to display ads on some page automatically – for example, because the article is too small, or it is sponsorship material, or this is important information and advertising should not distract from content. Examples of tags for managing ads:

  1. Insert <!--NoAds--> to disable all ads on the page (does not affect ads on the sidebar).
  2. Insert <!--OffDef--> to disable automatic inserted ads, use <!--Ads1-->, <!--Ads2--> to insert ads (no effect on the sidebar).
  3. Insert <!--OffWidget--> to disable all ads in the sitebar.
  4. Insert <!--OffBegin-->, <!--OffMiddle-->, <!--OffEnd--> to disable ads at the beginning, middle or end of the post.
  5. Insert <!--OffAfMore-->, <!--OffBfLastPara--> to disable ads immediately after the <!--more--> tag or before the last paragraph.

Tags can be inserted through additional Quicktag buttons when editing HTML. If you use an alternative text editor, switch to HTML code and insert these tags manually.

Insert ads in the sidebar

Quick Adsense, as we remember, has 10 slots for inserting ads into the sidebar.

If you saved the ad code in these slots, the corresponding widget appears:

Insert code in the header, footer

Quick Adsense allows you to insert the code in the header (header) and footer (footer) of the site. To do this, go to the Header / Footer Codes tab:

To embed the code in the header, copy it into the Header Embed Code field. An example of code for placing in the header can be the code of Automated AdSense ads.

To paste the code into the footer, copy it into the Footer Embed Code field. For example, I sometimes place counter codes in the footer — here, like in any Quick Adsense slot, the placed code does not have to be the ad code.


Quick Adsense is a free WordPress plugin that allows you to perform almost all the basic advertising manipulations that most webmasters need.

As the pasted code, you can use not only the ad code, but any HTML and JavaScript code, as well as WordPress and plug-ins short-codes.