wordpress redirecting to a site am not sure of when viewing a profile - wordpress

my wordpress site when viewing a profile of authors sometimes it stays sometimes when refreshed it goes to http://financetimes.co/work-at-home-mom-true-success-story-googletrader/ redirects to this hacked site.
is there a php code i can add in Function.php so it dont redirect.
if "http://financetimes.co" {
dont redirect
}

You first need to establish if the problem is on your computer side or on the server side.
Try with another computer. If the problem remains, the problem is on the server.
You cannot simply add a "patch". If your website is vulnerable you need to fix it.
You can consider disabling plugin by plugin and/or try temporarily another theme in order to find out the origin of the problem.

Maybe your wordpress theme is corrupt or contains malware. Download the following plugin to check if your theme contains malicious code;
https://wordpress.org/plugins/tac/
Goodluck!

resolved the problem by removing infected zen cauche pro plugin thanks stack overflow members.

Related

My wordpress website being hacked with code eval($_SERVER['HTTP_81DB2B3']

I have a problem with my website, I get information from wordfence about my WordPress website getting hacked
enter image description here add found a code eval($_SERVER['HTTP_81DB2B3'] so i removed it but in a few second the code going back. someone, please help me
I had something very similar to this. Go to your cPanel and search for "Cron Jobs" and scroll down to see if there's any malicious cronjobs setup. You might have some that look like eval(gzinflate(base64_decode(.... that are essentially causing this to reoccur. Not a complete fix to this issue, but you'll have to delete those cronjobs to ensure that that line of code doesn't keep reappearing. In addition to that, you'll also need to make sure those cronjobs don't show up again. Use a plugin like Wordfence (suggested above as well) to look for malicious files and if it helps replace your home directory (except for wp-content and wp-config) with fresh files.
If your website got hacked then I guess more than 1 file was affected by it,
case-1: If you are able to access the Wordpress Backend In this case, if you are able to access the Wordpress backend then I suggest you
Step-1: Add one plugin called (Wordfence Security – Firewall & Malware Scan
) and scan your website with it.
Step-2: After scanning the site remove all suspicious code from the site.
Case 2: If you are not able to access the Wordpress backend then you have to update your Wordpress manually with the hosting file manager or FTP.
Please Note: Please take a backup of your website before do any changes.

wordpress website is redirecting to blink.piterreceiver.ga/fast.php?t=j&id=658-3474568568-23-458578434

Wordpress website Awannews.fr is being redirect to blink.piterreceiver.ga/fast.php?t=j&id=658-3474568568-23-458578434. Can someone please help how can i figure out whats the issue.
I recently encountered the exact same redirect happening on a WordPress website I worked on. What worked for me was disabling a plugin that came with the theme I'm using on the site. In my case, it was an outdated version of the "WooCommerce Dynamic Pricing & Discounts" plugin that was infected with some malicious code.
Once I found the specific page the redirect happened on, I opened Inspect Elements in the Browser and looked at the changes to the page while it loaded in. There I managed to catch a glimpse of a <div> element loading in just before it redirects (the element id was pointing back to the plugin I ended up disabling).
First, I would recommend to:
Make sure all of the WordPress plugins are up to date.
Try to disable one plugin at a time and then refresh, check the site itself in another tab or window to see if the problem still presists.
If the 2 steps above don't help, then you could try to narrow down the cause/source by going around your WordPress site and try to catch at which point or which specific page the redirect happens. That way you could have a better idea of where to look or where not to look for the cause.
I hope this is helpful and you can post an update on how it went.

Error displaying oEmbed Wordpress

I've a problem with my wordpress website. When I insert some url for being embedded, it's not working fine.
Here is the issue URL : https://www.duosia.id/windows/cara-mengekstrak-files-menggunakan-winrar-dengan-mudah
And here is the Screenshot :
When I try to visit the embedded url. It's return 404 not found. You can check the embedded url here, https://www.duosia.id/windows/cara-mengekstrak-files-menggunakan-winrar-dengan-mudah/embed/
I've try these common solutions.
Update everything including WordPress, the theme and plugins. Available updates appear in Dashboard > Updates.
Deactivate all plugins in case there is a conflict. If the problem goes away while all plugins are inactive, then reactivate them one by one to determine which is causing the problem.
Switch to the default theme (such as Twenty Thirteen) then try to do what was not working. If the problem remains, it is a general WordPress or hosting issue. If it happens only while using our theme, please let us know.
Clear cache in both your browser and in any caching plugins that you are using (also disable services like CloudFlare, if used with your website).
Revert code changes if you have modified the theme’s code. If using a child theme, reactivate the parent theme.
But, seems no one work.
The WordPress post embeds don't seem to be working on your site.
This URL shows a live example of the problem:
https://www.duosia.id/windows/whatsapp-for-pc/
The two embeds present in that URL are returning a 404, therefore, oEmbeds are not loading properly and showing the 404 page:
https://www.duosia.id/windows/facebook-messenger-for-pc/embed/#?secret=kMPv636bx1
https://www.duosia.id/windows/line-for-pc/embed/#?secret=65m4VpxiYi
Have you tried testing those URLs in the plugin "Rewrite Rules Inspector"?
You should see something like this for any of the "embed" URLs:
index.php?name=$matches[1]&embed=true
Also, have you tried flushing the rewrite rules in WordPress or maybe setting the permalink structure to a different/default one (right now you seem to be using a structure of "category/post-name") to see if it changes anything?
For the file that you are embedding, are you uploading it to the Media Library or some other plugin?
First I would check on the server to verify that the file you are looking to access does exist.
Once you know that the file does exist, then repeat the steps you have listed again.

How to remove the Wordpress Virus wysija-newsletters completly?

Wordpress has been hacked by a vulerabilty of the Plugin: wysija-newsletters. Someone uploaded a Virus and it turned the WP Page into a hacking tool too.
How can I remove every change that wysija-newsletters did without a backup? (It is the page of a friend)
You should contact the plugin writers they can help you find out the issue and also the way to solve the problem.On the support page

wordpress wp-login.php?redirect_to wrong path

This is a weird one. I googled for hours but seems to me not a single person has this same issue.
I moved my website from http://www.domain1.com/wpfolder to http://www.domain2.com . Everything works fine except I cannot get the "wp-login.php?redirect_to" path to point to the correct url.
WordPress keeps setting it to:
"wp-login.php?redirect_to=http://www.domain2.com/wpfolder/wp-admin&reauth=1"
It should be setting it to:
"wp-login.php?redirect_to=http://www.domain2.com/wp-admin&reauth=1"
The "wpfolder" doesn't exist anymore..
I followed the instructions exactly on how to move a WordPress website, but the darn URL won't change...
Some forum mentioned changing the "site_url" and "home" from "http://www.domain2.com" to "http://domain2.com". Now I can finally get to the admin panel, but I don't get why it needs to be that way?
I cleaned my browser cookies and checked the wp-content folder for cache already. Nada..
Also the rest of the site is functional.
I would appreciate if anyone can help.
I moved the WordPress website from GoDaddy to Bluehost by copying the files and the database and the problem went away. I am not sure why this fixed it, but assuming it has something do with the cache.
If anybody has more information, I would love to read about it.
Thanks
I was facing the same issue, with same redirection to one of the sub-directory in which wordpress was installed.
Resolved this issue, by clearing the cache, if some cache plugin is active.
Or by deleting the cache plugin if any present and is currently not yet active.
As some entries made by cache plugin inside wp-config.php file creates the above mentioned problem.
After removing the cache plugin, it resolves the WP-admin URL issues.

Resources