HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Tips/Tricks/Mods (http://www.howtoforge.com/forums/forumdisplay.php?f=19)
-   -   Using cookies to keep someone from flooding autosignup (http://www.howtoforge.com/forums/showthread.php?t=22220)

EWNOC 11th April 2008 03:46

Using cookies to keep someone from flooding autosignup
 
1 Attachment(s)
If you need...

Here is a simple way I found to keep someone from just typing in your autosignup.php url and setting up as many pages as they wish the two files attached

setcookie.php
checkcookie.php

are very easy to use

simply change the paths to your site and to the site as it states in the comments within the code.

the checkcookie works best if you paste the code at the top of the autosignup.php right below the includes and before the serverpaths

Hope this helps someone any setup issues or questions please let me know

EWNOC

EWNOC 13th April 2008 18:50

using this with paypal
 
I have now been usingthis with paypal and have thourally tested it using the sandbox and it works great to keep people from reging without paying. you can put the url of the set cookie in the return address of the paypal subscription button, once the user has paid it takes them back to your site and sets the cookie. make sure you have the metta refresh time variable set to "0" this will keep the page from being written to history and the user will never know the address of the page that sets the cookie.

Any questions let me knwo

EWNOC


All times are GMT +2. The time now is 04:54.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.