How can one restrict what kind of web browser users use to view your web site. I only want users to be able to browse my web site using firefox. I know this is possible because I've seen others do it. I'm just tired of it working fine on firefox and not right on other browsers.
I'm trying to restrict access to a page based on a session variable called MemberUserID, so the way I thought of doing it was to say if MemberUserID is not equal to this value, then you would get an error page, but the operator I'm trying to use is giving me an error:
<% If Session("MemberUserID") != Name Then Response.Redirect "error.asp" End If %>
I know I'm doing something simple wrong here and it's doing my head in. Don't know if anyone can help without me posting yards of code? I am using normal login page in dreamweaver which uses record id as the username and users password as password.
This all works fine logs in and forwards to /ammend.asp?id=7295 which is also restricted, then the user can update their record, no problems so far. The problem is that if I change the ?id= to another number 7687 for instance in the browser then the user has access to that record 7687 when I though it should go back to the login page.
I am running a virtual hosting server. The configuration of server is as follows:
Windows 2000 IIS 5.0
All the virtual hosting sites are running as seperate user ie for the site www.xxx.com is running under xxxIIS and www.yyy.com is running as yyyIIS. I have also taken some precautionary file system security measures like the group everyone is not present in c: and directories corresponding to sites. But at the same time I can not remove everyone access from the full system, I will need to keep them in few directories.
This can lead to an asp code that is present on the server to do stuff like browsing through the file system, reading the contents of file etc. For ex if I have everyone acccess to c:winntsystem32 then any person on the server can write code to view the contents inside folder.
I want to know if there is any way to restrict the script belonging to one virtual hosting site to access only the contents of that site. example the site www.xxx.com present inside
c:inetpubwwwrootwww.xxx.com directory and can access only the contents inside this and the child directories. Is this possible? I searched the on google but could not find any link that gives me any information on this. It will really be a valuable information to me.
I have big problem because i need to link site and one service. I have customer with his site and about 1000 html pages which he want to be restricted. So we prolly need to do changes in that html pages...
Other thing is that part of site would be avaliable via payment thorugh SMS service. SO basicaly u go to one site, send SMS with instructions, and that service send u SMS with random generated password.
Then user need to go back to site and login using that random generated password. Can this be done and in what way. We have this system working in php but i dont have much ideas how to use this in ASP specialy with random passwords. I have some asp scripts that restrict pages but ofc users and pwd must be defined in access/SQL which is problem here regarding i dont have user/pwd i only have random generated code:
I have a problem with restricting multiple users to get access to my site with the same username and password.
I allready set up a table getting the UserID of the user and putting it in the table, therefore restricting access for future logins as long as the users Session is still valid.
Now to my problem. When the user logs out everything is great, but when he just closes IE the session is still valid and the field in the DB will not be deleted. I have put a SQL in the Sessoin_OnEnd in the global.asa file, but since this site is a micro site in another folder than the root, the global.asa can effect the main site aswell. And it will take at least 15 minutes before he can login again (and I do not want to set session.timeout any lower).
I have a website setup which also provide ability to download latest version of our Software by logging into the webpage. All latest softwares (ONLY ONE FILE .EXE for each Software) are located in the "/Download" folder of my website. Customer will login to website and the ASP page decide the software that this user has purchased and privide ONLY that Hyperlink to download the latest Version file.
My problem is if somoe body know the path and file name then they directly put the URL in address bar and will get latest file. How do I restrict that? Please suggest all possible solutions.
My problem, I've combined "log in" and "access levels" to restrict access to certain pages, using the built in "log in" and "user authentication, restrict access to page" features. But I find the after login I constantly get redirected from the restricted pages. Code:
I would like to restrict access to certain PDF files on my webserver. How can they be protected if they are in a "public" directory? For example, lets assume you have your html and asp pages for http://www.xyz.com saved on the server's hdd @ c:xyz.comhtdocs. If you place thefile.pdf in that directory, then all the "unauthorized" person would need to know is the pdf file url, i.e., http://www.xyz.com/thefile.pdf.
Assume I place the pdf file in the following directory on the server c:xyz.compdfs. Is there a way in ASP that I can allow certain visitors to view that file Remember, the asp file would be located on at c:xyz.comhtdocs.
How can I prevent a user from entering more characters than are allowed in a database field.For instance,if a field only allows 6 characters,how do I prevent the user from trying to submit the form in a user friendly way?
I have a select box that displays the phone numbers of an sms directory, Which has a limit of 100 . how do i restrict the size of the select box to 10 ? Code:
I'm trying to find out how I can make a page to be restricted to open between Saturdays 12:05 pm until Sundays10: pm... and that.. EVERY WEEK... is there any way at all to do this or is it just simply impossible.???
My boss wants me to create a form that will contain about 50 condo listings. He wants me to place a restriction on the form as to the number of Condo listings a user can select/request. Is that possible? If so, what will I need to do or use to make this stunt possible?
There will be several pages that will make up the form. There will be data being passed between the forms. To do that I would use ASP (I guess).
The items on each page would be different. Lets say on page1 there are 20 available condos located in area A. On page2 there are 20 available condos located in area B. On page3 there are 10 available condos located in area C.
The user goes to page2 sees a condo that he/she would like information about. They select that condo.
The user has now selected -one- condo from page2.
If the user goes to page 1 or 3 and selects a condo from those pages when the user hits the Submit button, the program should not allow the page(s) to submit since they have selected more than one condo. How can I make this possible?
Can someone point me in the right direction on this? There are 3 fields in the DB: model, rma, bagqty. If the values on a certain row are I530, 1108, 50 and a user goes to input the same data I dont want the insert to be allowed and force a new insert.
I dont need someone to do this for nor do I want that, just need a push in the right direction.
I'm creating a forum based site with basic BBCode features, but am concerned that misuse of the [ img ] tag will mess up my layout. I do not want to go down to road of users uploading images, but want to allow them to embed images from flickr, photobucket etc.
So, is it possible to restrict all linked images that are say, over 400 pixels wide? I've been racking my brains and have had trouble coming up with any solutions. Is it possible?
how can i retrict user to only access the web page iif and only if they have the username and password, they neeed to login before can access the certain pages. How is the coding for that web pages?
I have developed an ASP web application. If I sell this out to my client, how can I make sure that he doesn't run multiple copies of it. That is when I sell the web application my client should be restricted from running more than one copy.
Am trying to restrict user from entering non ASCII character in the text area. Say if the user entered non ASCII character then on the form post back it should show them the message like:
I have a simple ms access database front ended with simple asp pages using ms front page. I used the wizards to put it all together and I can send data easily enough using forms. I can recall the data using the data base wizards but I can't seem to design it to update the data once it's been submited. I've played around using sql update statements and modifying pages... but I gave up in the end. how I can design an update page using ms front page??? It doesn't have to be fancy or complex... I'll work on making it pretty later.
I have a website with a default webpage having an image. I am also having four(4) images. I'd like when the user closes the browser and reopen it, it must load a new image.
e.g. The User open the browser for the first time - Loads Image1. The User open the browser for the second time - Loads Image2. The User open the browser for the third time - Loads Image3. The User open the browser for the fourth time - Loads Image4.
The User open the browser for the first time - Loads Image1.
I know I can do this using JS but can I do it using Vbscript? I want to check if a browser is NS4 or lower and if so to display a certain stylesheet. If another other browser then display an alternative (more feature rich) stylesheet
in ASP Application can we get the application page by entering a single word in browser? more clearly. see i have my application in www root. called "test" folder.
now if i am entering only "test" in internet explorer browser, how can it will take fist page of my application. my first page of appliation is "login.asp" from test folder? please tell me how to implement it in ASP?send me the code.
How can I get text to remain on the Browser's statusbar? For example, if I'm saving data to a DB Table after a user clicks a Button in the ASP page, I want the statusbar to show something like "Save Successful" or "Save Failed" so they know something happened.
Right now, I'm trying to use the windows.status property, but it just flashes real quickly in the statusbar and then "Done" is displayed.
I have just uploaded my website and it looks fine in IE, but awful in Mozilla. I need to load a different CSS file according to what browser a user has. Does anyone have any code that will detect browsers and versions?
anyone knows a VBScript that acts as a webbrowser? I am behind a firewall and my local machine is not visible to the internet, but I have a access to some webspace with asp VBScript. With the right script I could tunnel pages and sites from my local machine