Yes that’s true … many spam tools go direct to the post comment url and inject spam that way. What you are looking to do is Block Comments coming from Referal URL’s that don’t include your host.
Just add this code to your theme’s function.php
after a day or so you should see a drop off in spam. But nothing is 100% bullet-proof here 🙂
//Block Referal URL exploit for Comments
function verify_comment_referer() {
if (!wp_get_referer()) {
wp_die( __('You cannot post comment at this time, may be you need to enable referrers in your browser.') );
}
}
add_action('check_comment_flood', 'verify_comment_referer');
Related Posts:
- Check if comment was modified
- How to show comment author email in front end comments list
- Change HTML Produced by wp_list_comments()
- How to wrap submit button of comment form with div
- Comment Walker vs. Comment Callback
- How can I limit the number of comments per registered user per day?
- How to place comments_template(); outside the loop?
- Showing comments only to same custom user role
- Why does comment_reply_link launch the reply form at the wrong spot on the comment section?
- How to hide “Trackback” on paginated comments
- How to display comments on different page
- how to have 2 comments_template() in one post
- Passing arguments to wp_list_comments callback function
- How do I change parameters without changing the core
- customize comment form
- comments_template not working correcly in custom template files
- Change WordPress comments url / word
- How can I show comments in random order?
- adding a text message beside the comment submit button
- How to get last comments but not from admin (or other specific user role/capability)?
- Remove “at” string from wordpress comment date
- Warning: call_user_func_array() expects parameter 1 to be a valid callback, func
- How to add a privacy-checkbox in comment-template?
- Order of Operation for these three hooks
- Comments to only be seen by their author
- What does the “$depth” parameter in the Walker_Comment stand for?
- how to get the comment ID in the front end when the REPLY button is clicked?
- How to add a title field in comments?
- Override comments.php template with plugin
- Add classname comment template from functions.php
- How to enable commenting system in WordPress
- Non-Blog Website without Search: are comments.php and search.php in theme still required?
- Change the HTML of the comment form that is generating somewhere from the core WordPress
- Customizing comments pagination for bootstrap
- comment_post action hook running on page load instead of after a comment is posted
- using comments_template() in custom single-portfolio.php
- how to properly use comments-template.php
- customizing TwentyEleven comments template
- How to call wp_list_comments() outside of the comments template?
- Customize Theme comment template to Insert VoteUp and VoteDown buttons
- WordPress comments – how to check if comment still needs to be approved?
- Is it possible to force login for comments only on custom-post-type or the custom comment template?
- Modify WordPress Comment From For AMP Html
- Get all images in post and comments like Twitter before post title
- Enable nested comments in Theme
- comments_number not displaying
- Custom setup of wordpress comments that are displayed
- Appended comments but they show up above the content instead of below
- Embedding Youtube video on comments
- How to make comments private for commentor and post author
- Name of comment field differs on different sites
- The comment could not be saved. No comment_ID on comments
- How to display comment meta under each comment content
- Check if the current user is author of first comment
- How can I embed comments plugin to my own website?
- Custom comment field not showing when logged-in
- Custom comment link
- I don’t have comments.php… how do I customize my comment fields
- How do I restructure the comment HTML layout?
- Why will comments not remain open on custom post types?
- How to create a classified section in place of comments_template
- How do I make the comment disappear after deleting from the database?
- How to put the author of the post in the comments?
- Is it possible to give a classname to specific comments in the WordPress admin?
- How to display replies to his comments in user profile of current user
- How to show a list of comments on home page from all posts?
- reply comment below the comment box without reload page
- Best way to edit/change comment-template.php without changing the core
- How can i display pagination in custom comment list?
- Why isn’t comment validation working?
- Closing Comments conditionally in comments.php
- Are paginated comments required for publishing Themes?
- Comment function for page
- How to call out the date of user’s first comment?
- Removing(replacing) avtar in comments.php with some other HTML arrangements
- How to pass settings to comment_form() if theme only uses comments_template()?
- How to get related posts and wp comments under tabs
- How to add a class to comment submit button?
- How can I return the result of my custom function?
- Change the “Allow comments” text for admin edit screen for custom post type?
- How Can I display the Current Logged-In User’s Comment at the Top of the Comments Section in WordPress?
- Paginated Comments “reply” does not work!
- Comments page id wp_list_comments
- reply to comment excerpt instead of author in comment title
- Redirect first time comments
- How to edit label_submit styling?
- Increase Comment Author Gravatar Size On WordPress Default Comment Function
- How can I fix the even/odd child classes comments so that the comments are unaffected by the top-level even/odd?
- How to maintain changes to comment-template.php
- Display Comment Form on dedicated Page for each post
- Commentform – Hightlight invalid fields instead of prompting towards error page
- Theme comment callback results nothing
- Undo a function that is not (seemingly) hooked to an action?
- Why links are not linked if edited comment?
- Author page link in comments is different than in posts?
- Auto approve all comments (editor)
- Comment section not appearing on posts with no comments
- Getting full code of wp_list_comments instead of replacing it
- Is there a Function so that the author of the comment can delete his own comment?
- The last comments of a post for the author of that post