With this module you can easily modify response from your web server:
Thanks to flexible settings you can inject HTML to all HTML pages on your website or just some specific pages matching your conditions.
Example of integrations:
Each rule consists of 2 parts:
Match type – possible values:
Request headers – comma separated list of headers or header and values – if request contains given HTTP header or specific value, condition is met. HEADER_NAME, HEADER_NAME=value. Leave empty to match all.
Cookies – Apply rule only for HTTP requests with specified cookie sent from the browser. List the cookies to be checked, separated by commas. For instance: COOKIE_NAME, COOKIE_NAME=value. Leave empty to match all.
Request Parameters – Apply rule only for requests with specified GET or POST parameter. List the parameters to be checked, separated by commas. For instance: query-param, query-param=value. Leave empty to match all.
Capabilities – comma separated list of WordPress capabilities. This could be used e.g. if you want to insert certain HTML to page for logged in users with specific WordPress capability.
Roles – comma separated list of WordPress roles. This could be used e.g. if you want to insert certain HTML to page for logged in users with specific WordPress role.
Visitor IP – Apply rule just for visitors from certain IP addresses or subnets. Provide a comma-separated list of IP addresses or subnets. For instance: 172.120.0.*, 192.168.0.0/24
Browser – Apply for visitors using specific browsers. Input browser names or any string from User-Agent request header, separated by commas
Is logged in – condition to check login status of user. e.g. if you want to inject HTML just for logged in users, or just for Not logged in users.
Second part of each rule specifies the HTML modifications, which should be applied to page once all conditions are met.
You can add to each of the fields as many HTML integrations as you need.
Custom HTTP Headers – add or replace value of HTTP response header to request matched by the condition.
Example of HTTP response, where you can modify headers with this plugin:
Alongside the URLsLab WordPress Plugin, you have the option to select from a range of other WordPress plugins that can inject HTML into your WordPress page. Here are some of the most flexible options:
Code Embed is another exceptional WordPress plugin that provides an array of features. It permits you to embed any type of code into your posts, including HTML. The interface is designed to be straightforward and user-friendly, allowing for easy injection and embedding.
With WPCode, you don’t need any coding experience – simply choose from our pre-made snippets or add your own code. Configure execution options and conditional logic with ease. Manage your custom snippets through our user-friendly interface
All of the aforementioned plugins can be used as alternatives or alongside our URLsLab WordPress plugin. The choice would boil down to your individual coding needs, level of expertise, and the specifics of your project. Always remember that while injecting code can enrich your website functionality, it should be done with caution, as misuse may jeopardize your site’s security or corrupt the design.