<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: My gravity forms are easily hackable !!!</title>
		<link>https://legacy.forums.gravityhelp.com/topic/my-gravity-forms-are-easily-hackable</link>
		<description>Gravity Support Forums Topic: My gravity forms are easily hackable !!!</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 04:50:34 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/my-gravity-forms-are-easily-hackable" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "My gravity forms are easily hackable !!!"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/my-gravity-forms-are-easily-hackable#post-141296</link>
			<pubDate>Mon, 04 Feb 2013 07:49:51 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">141296@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;One suggestion would be to use gform_after_submission instead of gform_post_submission, as gform_post_submission has been deprecated. &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_post_submission&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_post_submission&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_after_submission&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_after_submission&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;However, that is after the entry and the post are created, so that is still too late.&#60;/p&#62;
&#60;p&#62;You could use the gform_pre_submission_filter to check to see if the user is logged in at that time, and reject the submission at that point. Or even the gform_validation filter to return an error if the user is not logged in.  &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_pre_submission_filter&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_pre_submission_filter&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_validation&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_validation&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I think your approach would be fine, but just done with a different hook or filter.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ramey on "My gravity forms are easily hackable !!!"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/my-gravity-forms-are-easily-hackable#post-140940</link>
			<pubDate>Mon, 04 Feb 2013 02:22:22 +0000</pubDate>
			<dc:creator>ramey</dc:creator>
			<guid isPermaLink="false">140940@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;a) I have the spammer's IP blocked which address this particular situation for now.&#60;/p&#62;
&#60;p&#62;b) I have the box &#34; Require user to be logged in (?) &#34; checked.  But I'm creating a custom form and I'm guessing I'm overriding this.  I can use the WP api to require that one be logged in to see the form, but this has a few problems of it's own&#60;/p&#62;
&#60;p&#62;1) I want users who are not logged in to be able to see the form before making any commitment.&#60;br /&#62;
2) I'm using he form to display the custom post created by the form.  This has to be viewable by anyone.&#60;/p&#62;
&#60;p&#62;If you're really interested, you can check it out at &#60;a href=&#34;http://www.blincubator.com&#34; rel=&#34;nofollow&#34;&#62;http://www.blincubator.com&#60;/a&#62; &#60;/p&#62;
&#60;p&#62;Soooo ideally what I would like is to trap and reject any form submissions which come from anyone not logged in.  Here is my code.  I don't know if it really works.  That is, I don't know if the rejects the post soon enough to avoid having it created.  I guess I'll just have to unblock the IP address (Their still trying to spam me - I guess I should feel flattered).&#60;/p&#62;
&#60;p&#62;Any suggestions you want to make would be appreciated.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(
	&#38;quot;gform_post_submission_1&#38;quot;,
	&#38;quot;library_submission_handler&#38;quot;,
	10, 2
);

function library_submission_handler($entry, $form)
{
	$post_id = $entry[&#38;#39;post_id&#38;#39;];
	//echo &#38;quot;entry = &#38;quot; .  print_r($entry) . &#38;quot;&#38;quot;;
	if(get_post_type($post_id) != &#38;#39;bi_library&#38;#39;)
		return;
	if(! is_user_logged_in())
		return;
	$post = get_post($post_id);
	$post-&#38;gt;post_excerpt = $entry[&#38;quot;10&#38;quot;];
	wp_set_post_tags($post_id, $entry[&#38;quot;32&#38;quot;], false);
	//$post-&#38;gt;post_status = &#38;#39;pending&#38;#39;;
	$post-&#38;gt;comment_status = &#38;#39;open&#38;#39;;
	wp_update_post( $post );
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "My gravity forms are easily hackable !!!"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/my-gravity-forms-are-easily-hackable#post-140718</link>
			<pubDate>Sun, 03 Feb 2013 21:39:43 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">140718@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Any form on the web can be submitted without actually visiting the web page and pressing submit.  If you're getting a lot of spam submissions, you can try blocking the visitor's IP block in your .htaccess file, or you can require that the visitor be logged in by checking the box on the form settings, Advanced tab, &#34;Require user to be logged in&#34;. &#60;/p&#62;
&#60;p&#62;Does that help you?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ramey on "My gravity forms are easily hackable !!!"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/my-gravity-forms-are-easily-hackable#post-140665</link>
			<pubDate>Sun, 03 Feb 2013 20:45:59 +0000</pubDate>
			<dc:creator>ramey</dc:creator>
			<guid isPermaLink="false">140665@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;All of a sudden, I started to get new form submissions every 3 min.  The resulted in 100's of bogus form submissions.  I tracked this down (eventually) to the following.&#60;/p&#62;
&#60;p&#62;The hacker was requestiing the page with the form along with POST data for the form.  The POST data passed the gravity forms filters.  That is, it contained legal but BS data - basically links to his websites.  He doesn't do it by actually opening the form and pressing the submit button - but rather emulating what happens when a user presses he submit button.&#60;/p&#62;
&#60;p&#62;Soooo - where is he best place to trap this?  I can require that the use be a registered user - but I don't know which hook to use?  It seems that some hooks are invoked before the form is submitted.  If I trap it on &#34;post_submission&#34; it's already too late as the post has been created?&#60;/p&#62;
&#60;p&#62;Any help appreciated.&#60;/p&#62;
&#60;p&#62;Robert Ramey
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
