Skip to content

u/greg8872

In this archive from Feb 2013 to Apr 2026

34
posts
1.8k
comments
11
media
4.2k
score
17 saved before deletion

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.

1 points
  1. 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.

  2. What directory is your screenshot of, as it is not a directory of a WordPress install.

1 points

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.

1 points

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.

2 points

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 ;)

2 points

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

2 points

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.

3 points

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.

1 points

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.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.