Using the Query Arg Monitoring in All in One SEO

Did you know that you can monitor what query strings are being used on your site? All in One SEO makes it easy to see what's being used and block query strings you don't want crawled by search engines.

Tutorial Video

What are Query Strings

Query strings, aka query args, are the part of a web URL that comes after the base URL and are identified with a ?.

For example, a common query string you'll see in WordPress is /?s=search_term which is used whenever a visitor uses the search feature on your site.

In the example above, the ?s is a key and the search_term is the value (?key=value).

Query strings are used in many different ways on websites. They enable information to be passed as part of the URL.

You can read more about query strings on Wikipedia here.

Why is Query Arg Monitoring Useful

The Query Arg Monitoring feature in All in One SEO will help you by showing you which query strings are being used on your site so that you can decide whether to block them or not.

Some query args will be used because of features in added by plugins or your theme so you may not want to block them. But there may be some that are being used by bad actors that you would want to block. This can help to ensure that they don't show up in search results, potentially poisoning your results.

Using the Query Arg Monitoring Feature

To get enable Query Arg Monitoring, click on Search Appearance in the All in One SEO menu and then click on the Advanced tab.

Scroll down to the bottom of the page and enable the toggle for Query Arg Monitoring, then click the Save Changes button.

Query Arg Monitoring section on the Search Appearance Advanced tab

Log Retention

The only setting in Query Arg Monitoring is the Log Retention setting.

Log Retention setting shown in Query Arg Monitoring

Click on the drop down to change the length of time that logs are kept for.

Block Query Arg

In this section, you will see a table showing a log of all query strings that have been used on your site. Above this table is a form where you can enter a query arg you want to block

Query Arg Monitoring table and form for blocking query args

When someone or something (such as a crawler or robot) use a query arg on your site, it will appear in the log as shown below:

Logged entries shown in Query Arg Monitoring

You can select to block a query arg in the table. You have option for blocking the key or the key and value.

If you choose to block the key, it will block that key and any value for that key.

If you choose to block the key and value, it will only block that key when the specified value is present.

You can also choose Bulk Actions to block or delete entries.

You can use the form above the log table to enter any key and/or value. You can even use Regex to block keys.

Block Query Arg form