• 0

IP Address redirect HTML code


Question

Hey,

Trying to create a website that will be only accessible from my work. The computers at my work are all on a LAN, with a certain IP range. The site I am making will contain confidential info for employees only. I am trying to make it so the site will only be accessible from work, and no other computer. Of course, at work we have like 200 computers on a similar IP. Just wondering how to make a script (in HTML) that would allow access to computers with a specific IP range, and anyone not in that range will be redirected.

Thanks

Link to comment
https://www.neowin.net/forum/topic/632440-ip-address-redirect-html-code/
Share on other sites

23 answers to this question

Recommended Posts

  • 0

I'm pretty sure I dont. I know what i'm doing when it comes to HTML but nothing further. I just thought it might be possible, similar to how I was able to make one to detect screen resolution with redirects, thought I could with IP Addresses.

  • 0
  offroadaaron said:
why cant this just be a lan setup website then? an Intranet site and not an Internet site!

otherwise you just make it accessible via the external IP address of your service and not via the LAN IP addresses.

because i am just an employee designing a small website tool to help myself. i dont have access to the local intranet.

  • 0

well then block everything except for the external IP address of your work, server side. Apache can do this and im sure IIS can aswell.

you cant do it via LAN IP address.

One - The LAN IP address isn't whats shown on the net when the packet is passed to the server (fairly sure).

two - Anyone could be using the same IP address as you on a LAN.

  • 0

As long as it is a up to date server OS (Server 2003 SP2 or above) there should be no reason not to have a intranet on the internet (Extranet) as long as it is password protected

thousands of companies do this daily with no problem.

you could also setup a VPN from your work to the remote server then set the remote server to accept only your works internal lan IP's for connection to the website

Edited by winrez
  • 0
  winrez said:
As long as it is a up to date server OS (Server 2003 SP2 or above) there should be no reason not to have a intranet on the internet (Extranet) as long as it is password protected

thousands of companies do this daily with no problem.

you could also setup a VPN from your work to the remote server then set the remote server to accept only your works internal lan IP's for connection to the website

yeah companies do this via VPN and such not just via normal html password and IP address. I mean yeah its fairly safe and all but honestly I wouldn't do it (not if there is information that the company doesn't want to be leaked) unless a VPN was setup. That way everything is encrypted and there is a tunnel straight through to the server.

  • 0
  jordanspringer said:
because i am just an employee designing a small website tool to help myself. i dont have access to the local intranet.

If it's just a tool only for you, put it on your pc, with IIS on, and limit ip to only your pc. I'd also re-read your your I.T. useage policy. You could be terminated by just accessing an outside website and/or hosting a web service.

  • 0

since your work most likely has nothing but local ip addresses (10.*, 192.168.*, a few others) internally and if you are only going to have static html pages, you can just share the web directory with windows* to allow other computers on your network to access it. under this assumption that your company is using internal ip addresses this page will not be accessible outside your router unless it's specifically forwarding incoming traffic to your computer for whatever reason--and even so because you arent running a web server they wouldnt see anything.

i highly recommend you speak with your network admins if you really want to set up a web server and all. being a net admin myself, i know this sort of thing can be a bitch from a management standpoint if you don't know about it before hand.

*it's been a while since i've used windows so take this with a grain of salt.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • The Bromance is definitely over! 🤣🤣🤣
    • I have the chance to live where electricity comes only from dams.
    • Which doesn't give them a pass for making the same game with a different skin
    • End of 10: Upgrade to Windows 11 Home or Pro for only $14.97 by Steven Parker Microsoft has been reminding users about the upcoming end of support for Windows 10 that is inbound in less than four months. In the reminder, Microsoft has highlighted ways to deal with the event, covering both scenarios depending on whether your system is eligible for a Windows 11 upgrade or not. If you are in the latter camp, then Microsoft wants you to buy a new Windows 11 PC and that is something the tech giant has repeated time and again, even as recently as this past month in the context of Copilot+ AI PCs. It has also provided some data to back up claims of huge performance and productivity boost, albeit citing a paid study. However, if you are like me and don't plan to buy a CoPilot+ PC, and you have hardware that is eligible for Windows 11 (without bypasses) and if you are locked out of the free upgrade path, you can score a Windows 11 license for very little. Description follows: Upgrade your computing experience with Windows 11 Pro. This cutting-edge operating system boasts a sleek new design and advanced tools to help you work faster and smarter. From creative projects to gaming and beyond, Windows 11 delivers the power and flexibility you need to achieve your goals. With a focus on productivity, the new features are easy to learn and use, enhancing your workflow and efficiency. Whether you're a student, professional, gamer, or creative, Windows 11 Home has everything you need to take your productivity to the next level. New interface. easier on the eyes & easier to use Biometrics login*.Encrypted authentication & advanced antivirus defenses DirectX 12 Ultimate. Play the latest games with graphics that rival reality. DirectX 12 Ultimate comes ready to maximize your hardware* Screen space. Snap layouts, desktops & seamless redocking Widgets. Stay up-to-date with the content you love & the new you care about Microsoft Teams. Stay in touch with friends and family with Microsoft Teams, which can be seamlessly integrated into your taskbar** Wake & lock. Automatically wake up when you approach and lock when you leave Smart App Control. Provides a layer of security by only permitting apps with good reputations to be installed Windows Studio Effects. Designed with Background Blur, Eye Contact, Voice Focus, & Automatic Framing Touchscreen. For a true mouse-less or keyboard-less experience TPM 2.0. Helps prevent unwanted tampering Windows 11 Pro also includes a number of productivity-focused features, such as the ability to snap multiple windows together and create custom layouts, improved voice typing, and a new, more powerful search experience. Personal and professional users will enjoy a modern and secure computing experience, with improved performance and productivity features to help users get more done. Only on Windows 11 Pro If you require enterprise-oriented features for your daily professional tasks, then Windows 11 Pro is a better option. Set up with a local account (only when set up for work or school) Join Active Directory/Azure AD Hyper-V Windows Sandbox Microsoft Remote Desktop BitLocker device encryption Windows Information Protection Mobile device management (MDM) Group Policy Enterprise State Roaming with Azure Assigned Access Dynamic Provisioning Windows Update for Business Kiosk mode Maximum RAM: 2TB Maximum no. of CPUs: 2 Maximum no. of CPU cores: 128 Good to know This license is for Windows 11 only. It is NOT intended to be used for upgrading Microsoft Office (MSO) included in Parallels Pro. However, it will still work with Parallels Pro and allow you to run Windows applications including MSO, but it DOES NOT include an upgrade MSO itself. It is still compatible with Microsoft Office ONLY if you have a separate license for it. Length of access: lifetime Redemption deadline: redeem your code within 30 days of purchase Access options: desktop Max number of device(s): 1 Version: Windows 11 Pro Updates included Click here to verify Microsoft partnership For example, a Microsoft Windows 11 Pro license normally costs $199, but you can pick it up for just $14.97 for a limited time, that represents a saving of $184. For a full description, specs, and license info, click the link below. Get Windows 11 Home or Pro for just $14.97 See all discounted Neowin Deals on offer. This is a time-limited deal. Although priced in U.S. dollars, this deal is available for digital purchase worldwide. We post these because we earn commission on each sale so as not to rely solely on advertising, which many of our readers block. It all helps toward paying staff reporters, servers and hosting costs. Other ways to support Neowin Whitelist Neowin by not blocking our ads Create a free member account to see fewer ads Subscribe to Neowin - for $14 a year, or $28 a year for an ad-free experience Disclosure: Neowin benefits from revenue of each sale made through our branded deals site powered by StackCommerce.
  • Recent Achievements

    • Week One Done
      jbatch earned a badge
      Week One Done
    • First Post
      Yianis earned a badge
      First Post
    • Rookie
      GTRoberts went up a rank
      Rookie
    • First Post
      James courage Tabla earned a badge
      First Post
    • Reacting Well
      James courage Tabla earned a badge
      Reacting Well
  • Popular Contributors

    1. 1
      +primortal
      409
    2. 2
      +FloatingFatMan
      181
    3. 3
      snowy owl
      177
    4. 4
      ATLien_0
      172
    5. 5
      Xenon
      135
  • Tell a friend

    Love Neowin? Tell a friend!