Restrict visitors to a site by IP address

Not sure if this is the right place to ask this question but thought I would give it a shot.
I need to build a small website to collect entries to a sweepstakes. My client wants me to use an Internet application form service (Wufoo.com) to create the entry form that visitors will fill out for a chance to win a prize. Which is fine, I've used Wufoo many times but Wufoo will not do this thing I need to accomplish.
Just for the sake of offering all information, the site is hosted using a Virtual Private Server. (Debian 4 OS, Apache Web Server 2.0, PHP 5.0.4, MySQL 4.1.14)
Since my client wants to only allow visitors within the United States to enter the sweepstakes I thought it would be best to somehow only allow visitors with US IP addresses access to that page and also redirect visitors that attempt to access the form/entry page and send them to another page that says, sorry but the sweepstakes is for US visitors only.
There are probably a ton of ways to accomplish this but I can't figure it out.
In the interest of brevity, I won't list what I've learned, tried, and certain specific questions I've had because maybe someone out there has a solution that is completely different from what I've found. Thanks in advance.

There are two kinds of potential visitors to your site. 1) Those that know how the low-level IP works and 2) those that don't. You only care about people in group 2 because you are powerless to stop those in group 1. All you can do with those in group 1 is to refuse to send the winnings to a non-US address.
For group 2, you just need to be a bit sneaky. Record the name, address, and IP address of every visitor. Allow non-US addresses on the entry form. Then, after they click submit, record the address and IP address. Verify that the provided address is in the US. If not, display the "sorry" page.
There may be some people who are in group 2 but are on their way to group 1. At this point, they may try to enter a US street address but you will refuse to accept their entry because you have already flagged their IP address as being non-US.
I think is this your easiest, most fool-proof way of doing what you want. Let your users self-select. You can find out which IP addresses are assigned to non-US locations, but you would need to use the full ARINdatabase. It is possible, but difficult. Plus, there are lots of US-based proxies available that would defeat any ARIN or Geolocation scheme because they are, in fact, in the US.

Similar Messages

  • Restrict client request to site by IP address. If the request is?

    Hi all,
    I have a requirement like as follows.
    Requirement:
    Restrict client request to site by IP address. If the request is from specific IP address. I mean here standard bloack address (Eg: 127.0.0.1,default subnet mask...)
    I am looking for alread predefined method from java libs....Can please any one help on this issue.
    regards
    prasad.nadendla

    Use a SecurityManager and a .policy file that only grants SocketPermissions for the required hosts.

  • How to float a landing page to capture email address, only shown once per visitor to the site, and not on return visits?

    I would like to float a landing page to capture email addresses, that is only shown once per visitor to the site, and not on return visits OR after they submit their email not to be asked again.
    thanks guys!

    Hi Scott,
    Thanks a lot for the advice.
    Actually I added user names to the apex_access_control table and assigned each user the desired privilege but did not notice that I should do the following setting.
    *Access Control Administration > [RUN] > Set Application Mode: Restricted access.*
    Thanks,
    Guy

  • In IE, hitting the 'F4' button would cause a 'dropdown' menu of recent web sites in the address bar; what is the Firefox equivalent of this?

    Hitting 'F4' in IE would display recently visited web sites under the address bar. This made it easy to use the keyboard (rather than the mouse); once the list web sites appeared, you could use the cursor buttons to move to the site you wanted, and hit enter. I can't find a similar feature in Firefox; instead, I have to mouse up to the Awesome Bar, click the little down arrow, and choose.

    See:
    * http://kb.mozillazine.org/Location_Bar_search
    * https://support.mozilla.com/kb/Location+bar+search

  • Today the website addressed in my browser window changed so that the site's home addresses are in black and the rest of the address are in grey. How do I change it back?

    Today the website addressed in my browser window changed so that the site's home addresses are in black and the rest of the address are in grey. How do I change it back?

    Just go to iCloud on your iPad. Click on delete account - this will delete the account on your iPad only. You will be given to keep the addresses and calendar or delete the data.
    Then you create your new account on you iPad by entering your apple id.

  • Need to link visitors to my site directly to Itunes

    On some sites, I see a button that allows visitors to that site to directly link with Itunes, launch the application, and automatically subscribe to their podcast without having to look for it. How do I do that?

    In itunes click on the arrow next to your podcast.
    That brings up an ituens page for your podcast. Cntrl-click on the show image. Copy URL. Create a <a href=" html code based on thsi tag and use an itunes icon of some sort or just the words itunes.
    Now when people click on this link on your site it will open this itunes page.

  • Can´t browse to a site via the address field :: Firefox 33.02

    Since I have updated to Firefox 33.02 I can´t access any site via the address bar. Only if find an url in the history I can actually navigate to it. I am on a Mac Mountain Lion Retina Display.
    Please help ASAP
    Name: Firefox
    Version: 33.0.2
    User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:33.0) Gecko/20100101 Firefox/33.0
    Fenster mit mehreren Prozessen: 0/8
    Absturzberichte der letzten 3 Tage
    Alle Absturzberichte
    Erweiterungen
    Name: ColorfulTabs
    Version: 25.1
    Aktiviert: true
    ID: {0545b830-f0aa-4d7e-8820-50a4629a56fe}
    Name: Evernote Web Clipper
    Version: 5.9.1
    Aktiviert: true
    ID: {E0B8C461-F8FB-49b4-8373-FE32E9252800}
    Name: Firebug
    Version: 2.0.4
    Aktiviert: true
    ID: [email protected]
    Name: Flash and Video Download
    Version: 1.63
    Aktiviert: true
    ID: {bee6eb20-01e0-ebd1-da83-080329fb9a3a}
    Name: iMacros for Firefox
    Version: 8.8.5
    Aktiviert: true
    ID: {81BF1D23-5F17-408D-AC6B-BD6DF7CAF670}
    Name: LastPass
    Version: 3.1.54
    Aktiviert: true
    ID: [email protected]
    Name: pearltrees
    Version: 7.1.3
    Aktiviert: true
    ID: [email protected]
    Name: Pocket
    Version: 3.0.5
    Aktiviert: true
    ID: [email protected]
    Name: RankChecker
    Version: 1.8.32
    Aktiviert: true
    ID: [email protected]
    Name: S3 Firefox Organizer(S3Fox)
    Version: 0.6
    Aktiviert: true
    ID: {7CEA821D-3DAB-4238-B424-BF7324531750}
    Name: Twitter Address Bar Search
    Version: 1
    Aktiviert: true
    ID: [email protected]
    Name: 1-Click YouTube Video Downloader
    Version: 2.3.7
    Aktiviert: false
    ID: [email protected]
    Name: Adobe Acrobat - Create PDF
    Version: 1.2
    Aktiviert: false
    ID: [email protected]
    Name: Alexa Toolbar Creator
    Version: 2.1
    Aktiviert: false
    ID: [email protected]
    Name: DomainsOnFirefox
    Version: 1.2
    Aktiviert: false
    ID: [email protected]
    Name: iMedia Converter Deluxe
    Version: 3.5.0
    Aktiviert: false
    ID: {2677C893-4B55-1431-0417-05B22D76B0C5}
    Name: Proxy-Listen.de - Proxyswitcher
    Version: 1.0.4.5
    Aktiviert: false
    ID: [email protected]
    Name: SEO Blogger
    Version: 1.0.8
    Aktiviert: false
    ID: [email protected]
    Name: SEO For Firefox
    Version: 3.6.14
    Aktiviert: false
    ID: [email protected]
    Name: Seo Toolbar
    Version: 1.2.10
    Aktiviert: false
    ID: [email protected]
    Name: SeoQuake
    Version: 2.8.15
    Aktiviert: false
    ID: {317B5128-0B0B-49b2-B2DB-1E7560E16C74}
    Name: Zemanta
    Version: 1.0.1
    Aktiviert: false
    ID: [email protected]
    Grafik
    Geräte-ID: 0x fd5
    GPU-beschleunigte Fenster: 8/8 OpenGL (OMTC)
    Vendor-ID: 0x10de
    WebGL-Renderer: NVIDIA Corporation -- NVIDIA GeForce GT 650M OpenGL Engine
    windowLayerManagerRemote: true
    AzureCanvasBackend: quartz
    AzureContentBackend: quartz
    AzureFallbackCanvasBackend: none
    AzureSkiaAccelerated: 0
    Wichtige modifizierte Einstellungen
    accessibility.browsewithcaret: true
    accessibility.typeaheadfind: true
    accessibility.typeaheadfind.flashBar: 0
    browser.cache.disk.capacity: 358400
    browser.cache.disk.smart_size_cached_value: 358400
    browser.cache.disk.smart_size.first_run: false
    browser.cache.disk.smart_size.use_old_max: false
    browser.cache.frecency_experiment: 2
    browser.history_expire_days.mirror: 180
    browser.link.open_newwindow: 2
    browser.places.importBookmarksHTML: false
    browser.places.smartBookmarksVersion: 7
    browser.search.useDBForOrder: true
    browser.sessionstore.upgradeBackup.latestBuildID: 20141027150301
    browser.startup.homepage: https://kanbanflow.com/board/bfbe388cb244cacb4461dc83346b6e13
    browser.startup.homepage_override.buildID: 20141027150301
    browser.startup.homepage_override.mstone: 33.0.2
    browser.tabs.loadInBackground: false
    browser.tabs.onTop: false
    dom.disable_open_during_load: false
    dom.mozApps.used: true
    dom.w3c_touch_events.expose: false
    extensions.lastAppVersion: 33.0.2
    font.internaluseonly.changed: false
    gfx.blacklist.webgl.msaa: 4
    media.gmp-gmpopenh264.lastUpdate: 1414953284
    media.gmp-gmpopenh264.version: 1.1
    media.gmp-manager.lastCheck: 1414953281
    network.cookie.prefsMigrated: true
    places.database.lastMaintenance: 1414931766
    places.history.expiration.transient_current_max_pages: 104858
    places.history.expiration.transient_optimal_database_size: 167772160
    places.last_vacuum: 1299539445
    plugin.disable_full_page_plugin_for_types: application/pdf
    plugin.importedState: true
    plugin.state.silverlight: 0
    privacy.cpd.sessions: false
    privacy.donottrackheader.enabled: true
    privacy.sanitize.migrateFx3Prefs: true
    security.warn_viewing_mixed: false
    storage.vacuum.last.index: 1
    storage.vacuum.last.places.sqlite: 1414343345
    Wichtige nicht veränderbare Einstellungen
    JavaScript
    Inkrementelle GC: true
    Barrierefreiheit
    Aktiviert: false
    Barrierefreiheit verhindern: 0
    Bibliotheken-Versionen
    NSPR
    Minimal vorausgesetzte Version: 4.10.7
    Verwendete Version: 4.10.7
    NSS
    Minimal vorausgesetzte Version: 3.17.1 Basic ECC
    Verwendete Version: 3.17.1 Basic ECC
    NSSSMIME
    Minimal vorausgesetzte Version: 3.17.1 Basic ECC
    Verwendete Version: 3.17.1 Basic ECC
    NSSSSL
    Minimal vorausgesetzte Version: 3.17.1 Basic ECC
    Verwendete Version: 3.17.1 Basic ECC
    NSSUTIL
    Minimal vorausgesetzte Version: 3.17.1
    Verwendete Version: 3.17.1
    Experimentelle Funktionen
    -------------------------

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings, disables most add-ons (extensions and themes).
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu:
    *Click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Mac: Hold the '''option''' key while starting Firefox.
    When the Firefox Safe Mode window appears, select "Start in Safe Mode".<br>
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.

  • When clicking on privious sites in the address bar drop down Firefox has started to just reload the current page, is there a fix?

    Until recently I could click on resent sites in the address bar drop down, but now it just reloads the current page (still shows icons and addresses for the sites I'm clicking on). I've tired clearing history and cache, is this a known bug?

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Is possible to site mailbox email address with different domains in sharepoint online - office 365

    Can I set site mailbox email address with different domains in sharepoint online - office 365?
    For eg I have two dns link with office 365 account - abc.com, xyz.com
    So can i set site mailbox email according  using powershell like follwoing
    New-SiteMailbox –DisplayName "test" -Name "[email protected]" –SharePointUrl $NewlyCreatedsiteurl
    New-SiteMailbox –DisplayName "test" -Name "[email protected]" –SharePointUrl $NewlyCreatedsiteurl

    Hi Biraj,
    From your description, you would like site mailbox to have two email address.
    Since the issue is related to SharePoint online and Exchange online, I'd recommend you contact online support engineer for sufficient resource and more assistance. For your convenience:
    http://community.office365.com/en-us/f/154.aspx
    In addition, I find some information that might be relevant for your reference:
    Quotes from
    https://support.office.com/en-sg/article/Prepare-for-using-site-mailboxes-in-Office-365-6381daa5-3d98-4629-972d-d19e1dc48c1b
    Can I rename a site mailbox?            
    The display name of a site mailbox is the SharePoint team site display name. If you change the display name of the site in SharePoint, the display name also changes in Outlook. However, the site email address won’t be changed.
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How do i restrict access to gambling sites

    how do i restrict access to gambling sites on ipad mini

    You can put a filter on your wifi or use something like the K9 browser.

  • Restricting Visitor's Ability to Download Page Contents

    I want to restrict the public's ability to download or print
    specific pages on my website. I want visitor's to be able to only
    view these pages and yet not be able to print or download them
    successfully. If they do print or download, what is recieved would
    be too cumbersome, incomplete, cut off, jumbled or unusable. Note
    that I do not want to use passwords (too complicated) and
    Dreamweaver Frames doesn't limit printability. Any ideas?

    K_Dunn wrote:
    > The information is hard to get
    > ahold of, took a long time to compile and I want guests
    to visit the site every
    > time they need a number so my hits are maximized. I am a
    major novice at
    > Dreamweaver/computers and just want to get my site up -
    the thought of doing
    > passwords sounds complicated and time consuming.
    The information is hard to get hold of; it took you a long
    time to
    compile; but learning how to set up password protection is
    too time
    consuming? If your information is that valuable, you should
    either not
    put it online, or you should protect it properly.
    The Royal Mail has an extremely valuable resource in its
    PostCode
    database. Originally, anybody could look up any PostCode.
    What happened?
    Businesses started downloading the entire database. Now you
    have to
    register and are limited to a fixed number of queries every
    24 hours.
    It's the same with the BT online phone directory.
    User registration and limiting the number of accesses per day
    is the
    only way to go if your data is as valuable as you say it is.
    David Powers
    Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    http://foundationphp.com/

  • HT1178 How do I restrict access to my network to mac addresses?

    I am setting-up a new Time Capsule and wish to restrict access to my wireless network to only those mac addresses of my equipment.  I can't find instructions on how to do this.  Any help in pointing me to the correct resource would be appreciated.

    Suggest that you check the Help area in AirPort Utility for instructions.
    Open AirPort Utility
    Click the Help menu at the top of the screen
    Click AirPort Utility Help
    Wait for Help to load
    Click Setting up a Wi-FI network on the left side of the main page
    Click Control when a user can access your network
    Click Control access to your wireless network

  • Need to get the Top visitors for a site in SP 2013

    Hi all,
    I have to get the top visitors of a website which has been migrated from 2010 to 2013, Since the web analytics has been depricated in 2013, i cant find a way to get the data of the visitors count for a website, i cant create a list and store the names of
    the users in that as my site would be visited by many
    I have heard about using AUDIT LOGS, just wanted to reconfirm if i can do with it.
    If yes, i would like to know the way too.
    Thanks in advance

    maybe this topic can help you :
    http://social.technet.microsoft.com/Forums/lync/en-US/72eb0aaf-a34a-47a4-83c4-ec9d8527bc30/how-can-i-show-top-visitors-of-site-in-web-part-on-home-page-of-sharepoint-2013-site?forum=sharepointdevelopment
    Best regards, Christopher.
    Blog |
    Mail
    Please remember to click "Mark As Answer" if a post solves your problem or
    "Vote As Helpful" if it was useful.
    Why mark as answer?

  • Why can I no longer just type the name of a site in the address bar and be taken straight to it?

    Now instead of being taken to the site I get taken to a google search result. It was such a convenient feature...is there something I need to change settings wise?

    -> Tap ALT key or press F10 to show the Menu Bar
    -> go to Help Menu -> select "Restart with Add-ons Disabled"
    Firefox will close then it will open up with just basic Firefox. Now do this:
    -> go to View Menu -> Toolbars -> select Menu Bar and Navigation ToolBar -> unselect All Unwanted toolbars
    -> go to Tools Menu -> Options -> Content -> place Checkmarks on:
    1) Block Pop-up windows 2) Load images automatically 3) Enable JavaScript
    -> go to Tools Menu -> Options -> Privacy -> History section -> '''Firefox will: select "Use custom settings for history"''' -> REMOVE Checkmark from "Permanent Private Browsing mode" -> place CHECKMARKS on:
    1) Remember my Browsing History 2) Remember Download History 3) Remember Search History 4) Accept Cookies from sites -> select "Exceptions..." button -> Click "Remove All Sites" at the bottom of "Exception - Cookies" window
    4a) Accept Third-party Cookies -> under "Keep Until" select "They Expire"
    -> REMOVE CHECKMARK from CLEAR HISTORY WHEN FIREFOX CLOSES
    -> go to Tools Menu -> Options -> Security -> place Checkmarks on:
    1) Warn me when sites try to install add-ons 2) Block reported attack sites 3) Block reported web forgeries 4) Remember Passwords for sites
    -> Click OK on Options window
    -> click the Favicon (small drop down menu icon) on Firefox SearchBar (its position is on the Right side of the Address Bar) -> click "Manage Search Engines" -> select all Unwanted Search Engines and click Remove -> click OK
    -> go to Tools Menu -> Add-ons -> Extensions section -> REMOVE All Unwanted/Suspicious Extensions (Add-ons) -> Restart Firefox
    You can enable your Known & Trustworthy Add-ons later. Check and tell if its working.

  • Visitors to Flash site post content onto movie clips?

    Can visitors to a Flash web site post content like images on
    to Flash movie clips?
    Do you know of a Flash web site that does this that I can
    visit?
    Thanks.

    What I mean is Flash capable of excepting content such as
    images posted from visitors to a Flash web site or must a server
    side program be used with Flash such as PHP or Coldfusion.
    Thanks for any advice.

Maybe you are looking for