Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wp-polls.php direct invocation #129

Open
pkirk opened this issue Mar 20, 2019 · 1 comment
Open

wp-polls.php direct invocation #129

pkirk opened this issue Mar 20, 2019 · 1 comment

Comments

@pkirk
Copy link

pkirk commented Mar 20, 2019

Dear Lester,
I'm using your plugin since, I think, 2006. And from time to time I see that Google bot try to access it directly, causing an error 500 (add_action() not defined).
Do you remember if any time ago it was used to be called directly?
What do you think about adding a little code to avoid direct call?

Something like this below or a redirect to the home?

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
        die;
}

Thanks for your work,

Paolo

@lesterchan
Copy link
Owner

Nope, there should not be anytime they are called directly. In fact Google Bot should not index wp-content/plugins folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants