We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
The Forum now has a brand new text editor, adding a bunch of handy features to use when creating posts. Read more in our how-to guide

IP help please

I have a website where people can fill out an online form and submit some info but just of late ive had a few submissions who have been a bit rude to say the least so on the confirmation page i want their IP to be revealed to them so they might think twice about sending rubbish to me.

But how do I do this I mean what code is needed?

Cheers for any help

Comments

  • espresso
    espresso Posts: 16,448 Forumite
    Part of the Furniture 10,000 Posts Combo Breaker
    spacker wrote:
    I have a website where people can fill out an online form.........

    But how do I do this I mean what code is needed?

    Cheers for any help

    Isn't google wonderful.

    :rolleyes:
    :doh: Blue text on this forum usually signifies hyperlinks, so click on them!..:wall:
  • spacker_2
    spacker_2 Posts: 189 Forumite
    espresso wrote:

    It is as long as you get the correct search criteria, maybe I should of put Ive just spent 40mins searching and no luck yet im quite adapt at using google.

    ;)
  • anniecave
    anniecave Posts: 2,487 Forumite
    Part of the Furniture 1,000 Posts Name Dropper Combo Breaker
    I'd agree, it works fab as long as you put in the correct key words. I've spent ages before searching for stuff trying to figure out the exact termininology!
    Indecision is the key to flexibility :)
  • espresso
    espresso Posts: 16,448 Forumite
    Part of the Furniture 10,000 Posts Combo Breaker
    spacker wrote:
    It is as long as you get the correct search criteria, maybe I should of put Ive just spent 40mins searching and no luck yet im quite adapt at using google.

    ;)

    So was that link above no use to you? Plenty more in less than 4 seconds.
    :doh: Blue text on this forum usually signifies hyperlinks, so click on them!..:wall:
  • you are probably best not using javascript as if the user has javascript diabled nothing will show. you are probably better to use php as it is server side, this is the first link off google i got HERE after searching for php ip script
  • spacker_2
    spacker_2 Posts: 189 Forumite
    you are probably best not using javascript as if the user has javascript diabled nothing will show. you are probably better to use php as it is server side, this is the first link off google i got HERE after searching for php ip script

    This is exactly what I need otherwise a Internal Server problem arises with Java if not enabled plus the code isnt quite 100% correct for what I need to do.

    :beer:
  • i dont know how advanced your coding skills are mine arent too great when it comes to php but i know its not too hard to have the IP address sent along with the form... that way you may be able to see if someone is say repeat offending and ban if necessary or w/e.
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 353.5K Banking & Borrowing
  • 254.2K Reduce Debt & Boost Income
  • 455.1K Spending & Discounts
  • 246.6K Work, Benefits & Business
  • 603K Mortgages, Homes & Bills
  • 178.1K Life & Family
  • 260.6K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16K Discuss & Feedback
  • 37.7K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.