When I answer a question, a block of text shows under it to explain the answer, but it goes away before I can really even get started reading it.
Also, in the little testing I did there were many that were just overly obvious, as 3 answers were brief real basic answers and the correct answer was a much long well defined answer. Dead giveaway on the right answer.
PHP is telling you it is that file. If it really doesn't exist yet PHP is saying that is the file it is READING and having an error processing, then your PHP isntall is all jacked up.
What directory is your screenshot of, as it is not a directory of a WordPress install.
A little more advanced, I use a php_prepend file on servers, that among some other payload checks, looks to see if you are submitting wp login, and if so, looks for a cookie to be set that has a masked timestamp and their IP masked in it. Then there is also a separate script that site owners go to, that sets the cookie with a masked current timestamp and their IP masked, then redirects them to WP login. Without that cookie and a timestamp within an hour and matching masked IP, it will just dump the visitor to a default Apache looking 404 page. No need for WP core to even fire up.
(note, this is only in place on sites that do not have "public users" that use the WP user system.
WordPress.com is one of those "inferior" platforms that remove core functionality of the WordPress core in order to make more of a profit, something Matt can't stand. He should sue them over it...
It;s kinda like "I mailed someone a letter, should I still have it sitting on my desk"? Nope it is sent (and you should have seen a proper notification it was sent). If it send and the form still had everything in it afterwards, WAY too many people would assume for some reason it didn't actually go due to an error on the form, look it over and without seeing any type of error message, just hit send again, and possibly again, and then possibly moving on to someone else's site thinking yours is broken.
Well, hate to say it, you still have problems, I went to go to your site, it initially loaded, then after about a second, it sent me off to some other site...
If you are going to choose those two over writing a simple plugin, then site editor is your way to go. There are only 2 ways for plugins like WP Code to execute custom code you give it, 1. write the code out to a an actual file on the site and include that file, (I haven't looked in a few years, but never saw one do this) 2. pass it through the eval() function, which is one of the most inefficient functions there is in PHP. Why? Every time a page is called it has to load the code from the database, pass it to eval, which then has to parse the code, then convert to opCode then PHP can run. VS an actual file, the server can directly read it, it does parse it an convert it to opCode, but there is a very high chance the server will cache that opCode and then every call to the page just runs that cached code.
People tend to think that creating a custom plugin is hard or will bloat the site.
I put a custom plugin file in all the sites I maintain for the purpose of code sniplets the site needs. All you need a properly named single .php file in the directory (with appropriate headers in it), and you can activate it on a site. The bloat from too many plugins comes from plugins that are over bloated themselves. But a simple bit of raw PHP code (especially if it isn't storing any data) will have MINIMAL effect on your site, especially compared to having a plugin that needs to make a database call, and pass it through evel() to do the same thing ;)
As I said, the login you use to edit the site will NOT be the same as your hosting login. For that, you need to go the hosting provider and either do a "Forgot password" or contact their support to get you a login to it, then you can directly edit the .htaccess file as first suggested
Wordpress.org does not host webistes, they just provide the code for people use hosted elsewhere. You would need to contact whoever is hosting your site (who are you paying monthly or yearly for it).
Your logins you use to log into your wordpress site to edit the site have nothing to do with login for your hosting (well they shouldn't be the same anyhow)
A simple method to test if you use a hosting provider that uses cPanel, add :2083 to the end of the root site url. ie, site is at https://www.example.com/ the try https://www.example.com:2083 (that is the default port for cPanel user logins, and may redirect you to a URL which can possibly be a URL with a clue to the hosting provider.)
If you are still unsure where it is, DM the URL if you want and I'll look for you.
The big thing here, how modern are you on coding... I have 26 years of PHP experience. However I'll be the first to admit, I'd probably choke being put in a team of people with "modern" coding methods at first. Not that I can't learn newer ways, just being a solo developer for almost all those 26 years, yeah, I do it differently, so it would take a little learning curve to do things "properly" modernly.
Be responsible. Let people know what plugin you are providing for people to use, so they can decide for themselves if they want do write on their site.
for #1, I haven't tested it in a few years, but when I did, since in default setup of cPanel, the PHP files are executed as your user on the server, and the mail files are also sitting there in your hosting account owned by your user account, it is readable.
I just went in and threw a copy of c99 Shell on one of the sites on our most recent set up cPanel server, and yup, it can still navigate into the mail directory and read all the mail sitting on all the mail accounts for the domain I installed the script onto.
So #2, yup same as #1
#3, depends what they do with it. generally, people don't hack sites to be noticable, they don't want you to know your site is hacked. (that is why many that inject ads/redirects look for signs you came from a search engine result. Poeple who own the site tend to just go directly to the site, not search for it, so they are less likely to notice as soon
#4 Yup, As you mentioned, even just getting a separate hosting account that comes with e-mail would work, just don't set any website up on it. (this is assuming that the hack would come from exploited site install. if they get your login to your hosting account, well that is just the same as they got login to your email account. I myself prefer RackSpace Email (https://www.rackspace.com/applications/rackspace-email)
#5, make sure your hosting login isn't compromised, make sure ANY site on that hosting account gets hacked. Don't use any e-mail address on that account for other services that may email it a "forgort password" link.
#6, yes, all our VPS backup nightly to a dedicated backup VPS.
Just a note for your concern,while I didn't do it testing just now, when I did it a couple of years ago, one of the demos I set up was that I was able to go to a service they use, do a "forget password" option to be sent a reset link. My hack script intercepted that incoming email, game me the link and then instantly deleted the e-mail. Also when I did password reset, it deleted that notification e-mail, also the same when I changed the e-mail on his account to mine. in my experience, most e-mail clients only poll for new email every couple of minutes, so the client never got them before my script deleted them.
Being named "WP(something)" and "By WordPress developers" may possibly lead someone's mom to be confused to think you mean it is her son's company and his employees.... Are you sure you want to go with that?
When I answer a question, a block of text shows under it to explain the answer, but it goes away before I can really even get started reading it.
Also, in the little testing I did there were many that were just overly obvious, as 3 answers were brief real basic answers and the correct answer was a much long well defined answer. Dead giveaway on the right answer.
PHP is telling you it is that file. If it really doesn't exist yet PHP is saying that is the file it is READING and having an error processing, then your PHP isntall is all jacked up.
What directory is your screenshot of, as it is not a directory of a WordPress install.
A little more advanced, I use a php_prepend file on servers, that among some other payload checks, looks to see if you are submitting wp login, and if so, looks for a cookie to be set that has a masked timestamp and their IP masked in it. Then there is also a separate script that site owners go to, that sets the cookie with a masked current timestamp and their IP masked, then redirects them to WP login. Without that cookie and a timestamp within an hour and matching masked IP, it will just dump the visitor to a default Apache looking 404 page. No need for WP core to even fire up.
(note, this is only in place on sites that do not have "public users" that use the WP user system.
by default Apache web server setup,
.htaccess(and any file starting with.ht) is already blocked from being browsed it.But it is probably unlikely that Plesk will suspend only the admin side of a WordPress site, but not suspend the public side of it.
Sarcasm here, but, I've been rubbing a rabbits foot daily for 5 years, and my site hasn't been hacked, so that is the way to go!
Most all services you can get your domain name from anywhere you want.
As for as hosting, when you use Wix it IS your hosting. Its not an editor you can just set up anywhere else (like you can with WordPress)
WordPress.com is one of those "inferior" platforms that remove core functionality of the WordPress core in order to make more of a profit, something Matt can't stand. He should sue them over it...
It;s kinda like "I mailed someone a letter, should I still have it sitting on my desk"? Nope it is sent (and you should have seen a proper notification it was sent). If it send and the form still had everything in it afterwards, WAY too many people would assume for some reason it didn't actually go due to an error on the form, look it over and without seeing any type of error message, just hit send again, and possibly again, and then possibly moving on to someone else's site thinking yours is broken.
do you by chance have developer tools open? I noticed that it is set to not redirect when that is open
Well, hate to say it, you still have problems, I went to go to your site, it initially loaded, then after about a second, it sent me off to some other site...
If you are going to choose those two over writing a simple plugin, then site editor is your way to go. There are only 2 ways for plugins like WP Code to execute custom code you give it, 1. write the code out to a an actual file on the site and include that file, (I haven't looked in a few years, but never saw one do this) 2. pass it through the eval() function, which is one of the most inefficient functions there is in PHP. Why? Every time a page is called it has to load the code from the database, pass it to eval, which then has to parse the code, then convert to opCode then PHP can run. VS an actual file, the server can directly read it, it does parse it an convert it to opCode, but there is a very high chance the server will cache that opCode and then every call to the page just runs that cached code.
People tend to think that creating a custom plugin is hard or will bloat the site.
I put a custom plugin file in all the sites I maintain for the purpose of code sniplets the site needs. All you need a properly named single .php file in the directory (with appropriate headers in it), and you can activate it on a site. The bloat from too many plugins comes from plugins that are over bloated themselves. But a simple bit of raw PHP code (especially if it isn't storing any data) will have MINIMAL effect on your site, especially compared to having a plugin that needs to make a database call, and pass it through evel() to do the same thing ;)
Good to know before we drop an atomic bomb on one of their datacenters.
How do you know it was the Japanese who attacked your site?
Go to
Whitehouse.gov, doview->source, not one instance ofwp-content/pluginsAs I said, the login you use to edit the site will NOT be the same as your hosting login. For that, you need to go the hosting provider and either do a "Forgot password" or contact their support to get you a login to it, then you can directly edit the .htaccess file as first suggested
Wordpress.org does not host webistes, they just provide the code for people use hosted elsewhere. You would need to contact whoever is hosting your site (who are you paying monthly or yearly for it).
Your logins you use to log into your wordpress site to edit the site have nothing to do with login for your hosting (well they shouldn't be the same anyhow)
A simple method to test if you use a hosting provider that uses cPanel, add :2083 to the end of the root site url. ie, site is at https://www.example.com/ the try https://www.example.com:2083 (that is the default port for cPanel user logins, and may redirect you to a URL which can possibly be a URL with a clue to the hosting provider.)
If you are still unsure where it is, DM the URL if you want and I'll look for you.
"Hosting on WordPress", do you mean WordPress.com? If so, then you need to contact their support.
You can also do a View Source on the page, and just search for /wp-content/plugins/ and holy crap that site uses a ton!
You should "yahoo it"
The big thing here, how modern are you on coding... I have 26 years of PHP experience. However I'll be the first to admit, I'd probably choke being put in a team of people with "modern" coding methods at first. Not that I can't learn newer ways, just being a solo developer for almost all those 26 years, yeah, I do it differently, so it would take a little learning curve to do things "properly" modernly.
Be responsible. Let people know what plugin you are providing for people to use, so they can decide for themselves if they want do write on their site.
It couldn't scan your site?
for #1, I haven't tested it in a few years, but when I did, since in default setup of cPanel, the PHP files are executed as your user on the server, and the mail files are also sitting there in your hosting account owned by your user account, it is readable.
I just went in and threw a copy of c99 Shell on one of the sites on our most recent set up cPanel server, and yup, it can still navigate into the mail directory and read all the mail sitting on all the mail accounts for the domain I installed the script onto.
So #2, yup same as #1
#3, depends what they do with it. generally, people don't hack sites to be noticable, they don't want you to know your site is hacked. (that is why many that inject ads/redirects look for signs you came from a search engine result. Poeple who own the site tend to just go directly to the site, not search for it, so they are less likely to notice as soon
#4 Yup, As you mentioned, even just getting a separate hosting account that comes with e-mail would work, just don't set any website up on it. (this is assuming that the hack would come from exploited site install. if they get your login to your hosting account, well that is just the same as they got login to your email account. I myself prefer RackSpace Email (https://www.rackspace.com/applications/rackspace-email)
#5, make sure your hosting login isn't compromised, make sure ANY site on that hosting account gets hacked. Don't use any e-mail address on that account for other services that may email it a "forgort password" link.
#6, yes, all our VPS backup nightly to a dedicated backup VPS.
Just a note for your concern,while I didn't do it testing just now, when I did it a couple of years ago, one of the demos I set up was that I was able to go to a service they use, do a "forget password" option to be sent a reset link. My hack script intercepted that incoming email, game me the link and then instantly deleted the e-mail. Also when I did password reset, it deleted that notification e-mail, also the same when I changed the e-mail on his account to mine. in my experience, most e-mail clients only poll for new email every couple of minutes, so the client never got them before my script deleted them.
Being named "WP(something)" and "By WordPress developers" may possibly lead someone's mom to be confused to think you mean it is her son's company and his employees.... Are you sure you want to go with that?