HTML - Restricting Access To A Page
Hi,
I am trying to restrict access to a certain page on my website. I don't really want to set up a username and password, instead of was thinking of the following 2 things to verify. #1: would be for them to enter an email address that ends in either "@weber.edu" or "@mail.weber.edu". #2: would be for them to have to enter an identification number which must start with a "w" and must have 8 numbers after the w. No more, and no less than 8 numbers. For example: Email address: jay@mail.weber.edu Identification number: W01234567 If those two conditions are met, then they can have access to the page. Any clue how to write the code for that? Thank you very much! Similar TutorialsHi, Wondering what are some good ways to restrict access to files / links for a visitor until they have registered their details... for example, when a user tries to access a certain file from a download page, they click on the file link >> I want to send them to a registration page (a simple form), and - only once they've filled it out and submitted their details - to send them back to the download page with unrestricted access to that file (or any other resitrcted files). Any suggestions / pointers would be greatly appreciated. Thanks, Hi. I'm new to web development, and since I didn't have any luck on google with this I thought I'd ask here. What I need is the ability to allow only one user to access my page at a time, with the access time tied to their account/password. This is not a general web page, and you already have to vpn to get to it so overall security isn't a big deal. The system allows remote control of a few simple machines, and currently if more than one person can get to it simultaneously the last access steals control. Anyway, heres an example: Joe's Time: 1:00 - 3:00 M, cannot login before 1:00 and auto-logout at 3:00 Tom's Time: 3:00 -5:00 M, Bob's Time, etc.. I suspect this might require Java or something, but I don't have the first clue where to start looking. Its a windows box btw, and I don't have control of the user machines so this has to be set up for my local directory. Any hints (or free code if this is a simple/stupid question) are appreciated. Hi all I am trying to set up a custom 404 page for when a user visits a broken/error page. I have read several other pages telling me how to do it, and they all pretty much the same thing, however it isnt working. Keep getting this on the page when i enter a broken link: Not Found The requested URL /clients/index.htm was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. I have set up a ht.access text document with the following code: ErrorDocument 404 error-page.html An error-page.html page has also been created. Now, am i even naming ht.access file right? Do i need any other code in the error-page.html to make it work? im going round in circles, getting nowhere, i hope someone can help!! hi, im 13, im new to html, and im making a business site. anyway, i have the latest version of Adobe GoLive (if that helps) but i'd much prefer to use plain html code. i need a page that asks for a password and if its correct takes me to a page with stuff on it. can i have a little code plz? =) thanks Hi, I am trying to set up a webpage where the only way someone can access it is if they came from my facebook page. What is the easiest way to do this? thanks in advance. well long story short someone sent a virus through a clients file upload and the amdin wants to setup a file restriction on the types of files that can be sent in...they want to limit it too .doc and .xls files, how could this be done below is the current code for the file upload: Code: <input name="resume" type="file"/> Is there any way I can restrict incoming URLs to ONLY one, and redirect it to something else if it isn't from that page? <3 KTHXBAI Hi guys and thanks for reading my post. I am a novice HTML web developer so everything is new to me. Recently I've been really frustrated with IE's script blocking feature. I have been using onmouseover feature that triggers the buttons to change image. I have the script all working and tested in FrontPage, however, any time I go to view the web page, Internet Explorer gives me that little message saying: "To help protect your security, Internet Explorere has restricted this file from showing active content that could access your computer. Click here for options..." I have gone to other web sites which use plenty of onmouseover feature however, and I don't get this message. How are they doing it??? Is there a way to tell IE that the script is harmless or something? Am I using some method that IE says is dangerous? Anyway this is my code <a href="index.html" onmouseover="image0.src='HomeA2.jpg'" onmouseout="image0.src='Home.jpg'"> <img src="Home.jpg" name="image0" border="0" height="42" width="120" alt="Tell A Friend"></a> Anything i can change to prevent IE from blocking it? Please advice me. Greatly Appreciated. Thanks for reading anyway. When we use accesskey attribute we can able to use ALT+(accesskey). is there any way to define access keys for button and links should be allow us to use CTRL+ALT+(accesskey) Thanks Hi I am Ron a new member. I am using 123 reg to edit our allotment web site. Access seems to have changed and cannot get in to edit can anyone advise. Ron Can i have a code to make a password kinda thingy? i want to have some pages that you need a special password for. and how can i make the image in the search bar of my page different, is it <title image url="URL HERE"> Hi All... I'm building a website in Dreamweaver 8. I have one layer in the site that contains a form field for collecting email addresses. The layer is placed on top of an image. When I horizontally resize my browser window the layer moves. When I resize the browser vertically it stays in place. I've tried switching the layer properties from relative to absolute and back again but it doesn't make a difference. Could someone please have a look at the page and see if they have any suggestions? The link is http://www.sweetdivinemusic.com/storycollective This is the last piece I need to fix before taking the site live. Thanks a ton folks! Robert Is it possable to conect to a db without serverside script? My website is in asp but I would like to rebuild it. Is there a way to connect using xhtml. The one thing I really like is every part of my website is dependent on my db. That makes it really easy to admin but makes it stuck on one layout unless I rewite the whole site. Even java script would do. I want a site that gets away from asp and/or php but I am reluctent to give up my db. Hello, I am trying to load an HTML page with following code snippet. The img1440.html in window.open method gives an "access denied" error when I load this calling HTML that loads the img1440.html from onclick event. HOWEVER, THE WEIRD thing is that this error only comes from IE. It works JUST GREAT on Firefox. Please help. My most of user base are is accustomed to IE so gotta live with IE. Please help. <body> <!--1 --> <div id="Div1" class="panel" style="margin-right:0.5%; margin-bottom:0.5%;" onclick="window.open('img1440.html', '','width=600px,height=200px');" > <div class="panel-label">Accounting Services</div> <ul class="block"> <!--STUFF--> </ul> </div> Hi, I want to download data from web but failed. I need to download some stock info (High, Low, Price ) from he http://money18.on.cc/eng/info/livein...l?symbol=00001 The problem is those data is generated thru javascript and not appearing in the html file that I've download from the above link . What I've done: 1. used Firebug to trace the js. 2. identified data is generated thru this link" http://money18.on.cc/js/real/quote/0...=1287193281904 ("00001" is the stock number and "t=128719328190" is the timestamp) 3 . used Firefox Live Http Header to trace the headers of http://money18.on.cc/eng/info/livein...l?symbol=00001 and found this (just extracted a portion of it): Code: --------------------------------------------------------- http://money18.on.cc/js/real/quote/00001_r.js?t=1287193281904 GET /js/real/quote/00001_r.js?t=1287193281904 HTTP/1.1 Host: money18.on.cc User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.10) Gecko/20100915 Ubuntu/10.04 (lucid) Firefox/3.6.10 Accept: */* Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 115 Connection: keep-alive Referer: http://money18.on.cc/info/liveinfo_quote.html?symbol=1 Cookie: m18-sHist=2930_0-566_0-5_0-3998_0-8321_0-959_0-1163_0-379_0-916_0-1_0 HTTP/1.1 200 OK Date: Sat, 16 Oct 2010 01:41:19 GMT Server: Apache/2.0.52 (Red Hat) Last-Modified: Fri, 15 Oct 2010 08:00:59 GMT Etag: "2e3922e5-be-3a1ac4c0" Accept-Ranges: bytes Vary: Accept-Encoding,User-Agent Content-Encoding: gzip Content-Length: 142 Keep-Alive: timeout=3, max=14999 Connection: Keep-Alive Content-Type: application/x-javascript ---------------------------------------------------------- 4. used the browser to go he http://money18.on.cc/js/real/quote/00001_r.js?t=1287193281904 and got "Forbidden" 5. used perl and specified those headers found in "Live Http Header" to extract the content. Still the same "Forbidden" Do you have any solution to download those data? Thanks! Hi All, I have few requirement for the HTML and MS Access Database Integration. 1. requirement to "register online" using HTML page however I want all the information (Name, Age, Username, Password,etc..) entered to be updated in the MS Access Database. 2. requirement to login using the HTML which can read the username/password from the MS Access Database. Can anyone give me the link to an exising source code for this requiremnet or guide me how shall I proceed? I have the HTML page ready for the registration/login and MS Access Database ready however I need to know how can I read/write from the HTML page to the MS Access Database? I am new to HTML and MS Access. Thank you all in advance for any help with my requirement. Sanjiv Hi everyone, What is the code that i will have to enter to my website so mobile phones will be able to access it? I am writing an "external link exit page" where anytime a user clicks on an external link in my site, it navigates to a page exit.html that says something to the effect of: "Please note that you are leaving our website, and therefore we are not responsible for the content of the website you are about to visit." I was thinking of making the destination URL be a parameter, so for example a section of links on my website might look something like this: <h3>Other Sites You Might Find Useful</h3> <a href="exit.html?url=http://www.google.com">Google</a><br /> <a href="exit.html?url=http://www.yahoo.com">Yahoo!</a><br /> <a href="exit.html?url=http://www.weather.com">weather.com</a><br /> So in exit.html I have a parameter called url that needs to be decoded and placed in my HTML source. After I display the warning message I want to give the user the option to either go back or continue to the externall url. <h3>You are now leaving our website. Please be advised that we are not responsible for the content of the website you are about to visit. </h3> <h4>Are you sure you want to continue?</h4> <a href="[URL parameter]">Yes! Continue to [URL parameter]</a><br /> <a href="javascript:history.go(-1)">No! Cancel and go back</a><br /> How do I do this? Hello, I have following code snippet that opens an HTML file in a pop up window. However, when doing so, it is giving java script error called "Access is Denied" I am using IE7 it works just fine on FF. Please help <div id="Div1" class="panel" style="cursor: pointer; margin-right:0.5%; margin-bottom:0.5%;" onclick="window.open('img_1440.html', '','width=600px,height=400px');" > <div class="panel-label">Click for Details</div> <ul class="block"> <p style="text-align: 'center'; font: '26pt'; verdana; color: 'blue'"> Details </p> </ul> </div> Thanks, Ruchir Hi, On my page I have a frame. This frame loads an external page, which has a function, Enter(), which I want to call. How do I access this function? I've tried HTML Code: document.getElementById("frame1").document.Enter() and HTML Code: document.getElementById("frame1").Enter() , but both do not work. What am I doing wrong? Here's my code: HTML Code: <html> <head> <script type="text/javascript"> function go() { document.getElementById("frame1").document.Enter(); //alert('understood'); } </script> </head> <frameset id="frameset1"> <frame id="frame1" name="frame1" border=0 src="http://somepage.com" scrolling="no" /> </frameset> </html> Thanks, WhiteAvenger |