Plesk Onyx for Linux
kb: fixed
kb: bug
ext: wptk
ABT: Group B
Applicable to:
- Plesk Onyx for Linux
Symptoms
-
Images on the WordPress website are broken and replaced with the following one:
-
Domain name contains mixed case letters, e.g.
ExAmPlE.com
. -
The Hotlink Protection is enabled on the instance at Plesk > Wordpress > ExAmPlE.com > Check Security.
Cause
Product issue:
-
#EXTWPTOOLK-2337 "Hotlink Protection And Mixed Case Domains: “Hotlink Protection” security measure now properly works for domains with mixed case names."
Fixed in:- WordPress Toolkit 3.6.0 21 February 2019
Resolution
Please consider updating your server:
Workaround
If update is not possible for some reason you may try the following
temporary solution
As a workaround, rename the domain so it does not contain mixed case letters:
-
Go to Plesk > Domains > ExAmPlE.com > Hostings Settings.
-
Change the Domain name field to exampletemp.com and press the Apply button:
Note: it is not possible to directly rename the domain to
example.com
because Plesk will detect it as the same name. -
Change the Domain name field to example.com and press the OK button.
Comments
8 comments
I am using the latest version (Onyx 18.20) and still seeing the same issue, please advise on how to disable this feature, I tried disabling it from the WP Kit but it's still blocking the images. please advise, thank you!
Hi Motaz, if you disabled that in WP Toolkit make sure that:
1. It is not website cache, try e.g. opening in incognito mode.
2. Make sure there are no 3rd part plugins that also enable hotlink protection
3. Make sure you are not loading images from another website.
The problem I had was that the domain was served from https://mydomain.com but the images were linked to https://www.mydomain.com. Looking at Google Chrome, it showed mydomain.com in the address bar, so it could be easily missed that you aren't using the www. or vice versa.
To fix a WordPress site, I used the "WP Migrate DB" plugin. This allowed me to run a text replace on all the www. instances in the DB tables. If you have any cache or speed boost plugins installed, remember to clear the cache after too.
@Ian Brown
Thanks for sharing, it can be useful
I potentially, have a slightly different issue, mine is a multisite installation, images load find on the main site, but any sub sites have the image hotlinking issue.
Thus far, I've had no luck getting on top if this.
Anyone have any advice/suggestions?
This is using sub-domains for the sub sites, so *.domain.com (for example).
Hello Jason Koning
In your case, the root cause seems to be different and deeper investigation is required.
You may submit a request for Plesk Support: https://support.plesk.com/hc/en-us/articles/213608509 to have it check from support side, maybe there will be some suggestions.
Hi everyone I’ve been looking up and down but could not find any answers so I hope you can help!
For a website I run wordpress on it, runs on Plesk VPS with cloudfare
after this I still get the messages that there is an hotlink issue and it won’t show any images
I am not sure where to look anymore and almost feeling like pulling my hair… it was working fine last week :/
thank you !
Hello sasi olagi
Please, check this article: https://support.plesk.com/hc/en-us/articles/360019946833
In case it won't help, submit a request to Plesk support: https://support.plesk.com/hc/en-us/articles/213608509
Please sign in to leave a comment.