Results 1 to 10 of 10

Thread: Pass s_user_info message to ATTACK_DETECTION_URL

  1. #1
    Join Date
    Mar 2010
    Posts
    9

    Default Pass s_user_info message to ATTACK_DETECTION_URL

    I suggest to pass on the user info message to the attack detection URL either as a POST or GET variable. Example see below.

    Currently I manually changed the formmail.php code (8.23) from:
    PHP Code:
    Redirect(ATTACK_DETECTION_URL,GetMessage(MSG_FORM_ERROR)); 
    to:
    PHP Code:
    Redirect(ATTACK_DETECTION_URL.'?msg='.urlencode($s_user_info),GetMessage(MSG_FORM_ERROR)); 
    PB

  2. #2
    Join Date
    Dec 2003
    Posts
    3,980

    Thumbs up Re: Pass s_user_info message to ATTACK_DETECTION_URL

    Hi,

    Thanks. Good suggestion, and it's on the TO DO list for a future version.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Mar 2010
    Posts
    9

    Default Re: Pass s_user_info message to ATTACK_DETECTION_URL

    Thank you for your consideration.

    As said above, I patched the current version so its not urgent for me, but ideally like to use the "out-of box" version.

    Probably not a lot of real people see that page anyway, but I am bit paranoid and like to have consistent styling just in case, so I am using a custom attack notification page.

    PB

  4. #4
    Join Date
    Aug 2010
    Posts
    2

    Default Re: Pass s_user_info message to ATTACK_DETECTION_URL

    Hi Polarbear,

    I too would like consistent styling and am trying to implement a custom attack notification page. I have the custom page working, but am having difficulty passing along information like the user info message. Any chance that you can detail implementing a bit? Maybe some example code of the custom attack notification page?

    Thanks for any help!

    Best,

    Matt

  5. #5
    Join Date
    Mar 2010
    Posts
    9

    Default Re: Pass s_user_info message to ATTACK_DETECTION_URL

    Have a look at the very first post in this thread. It contains the PHP code of the modified Redirect function. It passes the user message as the URL parameter msg to the custom page.

    Here is a page template:

    Code:
    <H2> Form Submission Error </H2>
    
    <B><FONT color="red">
    Your form submission has been rejected as it appears to be an abuse of our server!
    </FONT></B>
    
    <P>
    
    Our supplier of forms processing software has
    provided <a href="http://www.tectite.com/serverabuse.php"
     target="_blank">more information about this error</a>.<br /><br />
    
    <P>
    
    <B><?=strip_tags($_GET['msg'])?></B>
    
    <P>
    
    <FORM action="">
       <INPUT type="button" value="Back" onClick="history.back()">
    </FORM>

  6. #6
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: Pass s_user_info message to ATTACK_DETECTION_URL

    Hi,

    Here's a supported alternative...

    FormMail creates a PHP session and keeps it active after the redirect to "good_url" or the ATTACK_DETECTION_URL.

    This means these pages, if written in PHP, can access anything in the session.

    In addition, FormMail can place your forms' fields into the PHP session, using this feature: http://www.tectite.com/fmdoc/session_access.php

    Once they are in the session, your page can access them.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  7. #7
    Join Date
    Aug 2010
    Posts
    2

    Default Re: Pass s_user_info message to ATTACK_DETECTION_URL

    Thanks! I'll take a look into both approaches.

    Keep up the great work!

    Best,

    Matt

  8. #8
    Join Date
    May 2013
    Posts
    1

    Default Re: Pass s_user_info message to ATTACK_DETECTION_URL

    Seeing line codes but not understanding what there entire are, i must learning about them

  9. #9
    Join Date
    Jun 2013
    Posts
    1

    Default Re: Pass s_user_info message to ATTACK_DETECTION_URL

    A good find, no doubt. Please try to improve your way of writing, it is a bit hard to follow sometimes.

  10. #10
    Join Date
    May 2013
    Location
    ho chi minh
    Posts
    1

    Default Re: Pass s_user_info message to ATTACK_DETECTION_URL

    Thanks for suggestion. It usefull for me. I have lost so much time for this issues.

    ------------------------------------------------------------------------
    Diễn đàn rao vặt miễn phí

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How do you pass imgverify errors to bad_template?
    By Frypantofire in forum Community Support
    Replies: 7
    Last Post: 27-Mar-2011, 01:26 AM
  2. How can I pass a ?id= variable through the script?
    By rdkelsey13 in forum Community Support
    Replies: 1
    Last Post: 04-Mar-2009, 10:07 PM
  3. Pass user name from form to confirmation html?
    By sdasevne in forum Community Support
    Replies: 0
    Last Post: 07-Sep-2007, 01:37 AM
  4. How to pass values between 2 forms?
    By mcameron in forum HOWTO Guides and Tips
    Replies: 1
    Last Post: 01-Dec-2006, 07:51 PM
  5. Can formmail pass data to remote url?
    By CWD in forum Features Questions
    Replies: 5
    Last Post: 21-Apr-2006, 04:42 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •