How To Restrict Webpage
how to restrict my webpage, the logged in users are only allow to access page, if not redirected to login form.
View Complete Forum Thread with Replies
Related Forum Messages:
URL Restrict (Restrict To Domain PHP)
I know I found it in these forums but I have looked for hours with no luck. I had a small PHP snippet that I could add to my application that would limit its working to the domain I put in the variable. I'll be if I can't find it in these forums. Could someone point it out if you happen to know where it is? I plan to put it in the header of a template and encrypt the header so it can be used to demo it only on a particular URL or domain. I hope that clarifies which one I was after.
View Replies !
How To Move Arrays From Html Webpage To Webpage?
There are a couple techniques to move information from different html web page to web page. 1. URL; 2. Cookie; 3. Form; 4. Session; All the examples I found are move distinguished variables from page to page, such as "?weight=20&name='apple'". I need users choose from the first web page (the arrays will be generated), then use it in second and third html web pages. How do I transfer them (arrays) and which way is the best? For example, if I have two arrays, $fruit[] = array("apple", "pear", "orange"); and associative array $myCats["Me"]="Merry"; $myCats["Pi"]="Pippin"; $myCats["He"]="Hergie";
View Replies !
Best Way To Restrict Users
say we have www.site1.com and signup.site2.com 2 sites hosted on 2 different servers. what would be the best way to block everyone out from visiting signup.site2.com directly unless their coming from www.site1.com. i m looking for a "Referrer Check" but since HTTP_REFERER isnt fullproof is there any better alternatives to getting this done?
View Replies !
Restrict Copy
I have a php side still in implementation process. I have upload a lot of picture on it. my question now is is it possible for us to restrict user from copy/download,save,print the picture? Or I can get these info from any site? Do have any example?
View Replies !
Restrict POST
I want to restrict POST commands to Apache except when certain condition(s) are met. I already have my condition I just do not know how to go about it. if!(condition (does not meet spec))! { ?disable post? }
View Replies !
Restrict Viewing Of Php_info
I am sure that this is probably an odd request, but it there a way to restrict the use of the php_info tag. The only reason I am asking this is my boss feels that it gives to much "system" information and does not want it displayed as where I don't have a problem with it. I have serached this forum and checked in the PHP manual, but nothing has a reference on how to to someting like this.
View Replies !
Restrict Uploads By Ip Or Session
I'd be very much grateful to anyone who can help me out with this problem.I've been googling for more than 2 hours with no results. Can anyone show me how or direct me to a tutorial on: How to restrict uploads by ip or session? I want to restrict a one user to only one upload,say per day or week or per ip.
View Replies !
Restrict PHP Usage From A Folder
Here's the context: We have a server and have been hosting our own websites for a while. But now, a customer wants to have FTP access in order to manage his static, non-PHP website. I found a solution that seems to work and would like to know if it is safe enough to be used. I added: <Location /> ForceType text/html </Location> To hpptd.conf file in the vhost entry of my customer's website. It seems to work fine, as all .php files are not parsed by php anymore. It is not easy nor possible to change the global configs of the httpd.conf and not possible also to install a separate apache server. So, do you believe that this is an appropriate solution?
View Replies !
PHP Functions That Most ISPs Restrict?
I'm a long-time Cold Fusion developer converting over to PHP. One of the issues that I ran into with ISP-hosted Cold Fusion servers is they often placed restrictions on specific Cold Fusion tags for security reasons (such as CFFILE and CFREGISTRY) Are there any functions in PHP that most/many ISPs tend to restrict?
View Replies !
Restrict PHP Page To Only One Directory
I am trying to restrict access of PHP script to a single directory only. How can I do that? I am running Apache 1.3 and PHP 4 in Linux. I think I need to use the Directory and SetHandler directive right? Something like: <Directory /php/enabled/directory/> SetHandler ### what's here? ### ### ### anything else here? ### </Directory> Currently the way it's set up now is that PHP can be placed anywhere below the doc root but I am trying to avoid that. I only want PHP to go in one directory.
View Replies !
Restrict Access To Directory
I think I have more or less got to grips with basic session management, but I have a problem protecting a whole directory. I am making a website with a members area. I have used some basic session management to create a login page and then use the session to control access to other pages. I need to have a directory within the members area where the organisation will upload files such as minutes of meetings, agendas, etc. etc.. I want to be able to list the files in this directory on a members only page, which I can do with opendir() readdir() etc. and some formating to put links around the filenames. My question is. How do I protect the files in that directory from being accessed by somebody who knows the full path and file name?
View Replies !
How To Restrict None-admin Users?
when i tried to view my web application and not specifying the http://hostname/index.php. the browser shows all the files within that server..Files that are within the HTDOCS folder. How can I restrict none-admin users to view the folders/files using the web browser? and also how can i make it default, that when every time an end-user try to access the system using "http://hostname/" it would show the index page, not the folder and its files?
View Replies !
Restrict Direct Access
when user goto my page, they have to login with username and password, then they can access all link in my page. How can I restrict user from direct access to my content pages which need user login before access it?
View Replies !
How To Restrict Access To Php Program?
I have a php program that sends images to my html pages. <img src="url/send.php?id=whatever" ... How can I stop people from linking this php program from another site or simply typing it into their browser address bar? Can I stop a 'wget' for example?
View Replies !
Restrict User From Certain Files
say you have a number of scripts in one folder named "city1" then others in "city2" is there a way to not allow the user to view any city2 pages unless according to php validation it was ok to do so ? Basically cos i don't want users to be able to view both cities by just changing the url from one to the other i need to stop them doing it.
View Replies !
Restrict Database Access In Php
On a server using php 5, we would like to *force* all mysql queries through a database class. Is there a way to restrict the mysql_open command in some scripts, while still allowing it inside the database class.
View Replies !
Restrict To Specific Extentions
Code: <?php //upload.php // Upload directory $dir = 'uploadpics/' $num = $_POST['num']; $messages = array(); for ($x = 1; $x <= $num; $x++) { $file = $_FILES['file'.$x]; if (! is_uploaded_file($file['tmp_name'])) { $messages[$x-1] = 'File '.$x.': No file selected.' continue;
View Replies !
Restrict Number Of Messages/page
i've wrote a code who simply does write text in a simple text file. how can i restrict the messages on the site by using index.php?page=<any-number>? i've seen it on a lot of sites, among this very one that you are viewing right now. if not clear yet, i want a "next"-button to restict so only, lets say, 5 messages are shown/page
View Replies !
Restrict Users From Typing In URL Manually
I created an online exam, and users must read through course material before taking the exam. I want to FORCE them to go through the material before they take the test. If they type in the url of the test manually, how can i redirect them to another page. The only way to access the test would be from a link on the last page of the content. I know i read about this before, but I can not remember the specifics on it.
View Replies !
How Can I Restrict Access To Data File?
I have a php script that processes a form and then posts the user input to a data file on the server in a comma delimited format. For simplicity call the file "data.csv." The script is working well and the data is posted correctly to the data file. The big problem is that anyone can point their web browser to...
View Replies !
Image Upload - How To Restrict A Size?
I have an image upload form that works fine, I can limit the size of the file, but now I need to limit the users to a certain pixel range. Something like size MUST be 50 x 50 pixels. Is there anyway to do this? Here is the current code I have: Code:
View Replies !
Restrict Access To Folders/files
On a website, I will have several PDFs that I need to make available if user gives correct password or is in a given IP range. My first thought was to use .htaccess, but the host doesn't support that. they do support .htconfig and I didnt find any way of using that to resolve my needs. If there any walk around in this situation using PHP and MySQL?
View Replies !
Restrict File Access Via Browser
I play in a band, and we have a CD coming out soon. We have around 23 songs, so we are going to have the B-Sides for our album accessible online if you buy our CD. What I would like to be able to do is have a small program pop up when the CD is inserted (probably Flash) and a user can download any of the B-Sides he or she wants. The problem is, I don't want anyone to be able to access the B-Sides without the CD. I don't want access to be possible just be entering the url of a song in the address bar of the browser. The initial programming for the Flash interface is pretty easy, and I've pretty much taken care of that. The part I'm stumped on is preventing access. From what I've read and examples I've found, it looks like using php would be a good way to do this, but I have no idea what I'm doing.
View Replies !
Restrict Number Of Characters Entered
I'm trying to figure out how to restrict the number of characters that a user can enter into a specific textarea - I know you can do it in an <input> tag, but not with a <textarea>. Does anyone know a way I can do this either in html, or a line of validation I can use in the PHP to do this? I'm guessing some kind of if count('$mytextarea' > 250){echo 'Too long - make it shorter} or something, but I'm really not sure on the syntax.
View Replies !
How Can I Restrict The Input Of The Text Box To Not Allow Commas?
I have a php form that collects information and inputs the information from multiple pages into a pdf file. The forms store the information in a CSV file. One of my questions asks for a particular location. If someone input the loaction such as "Miami, Florida" the comma throws off the formatting. How can I restrict the input of the text box to not allow commas? I tried a javascript validation script, but that caused an error.
View Replies !
Restrict Downloads To Users Going Through Page?
I have a question regarding file access which I can't find posts on by searching... I have a directory full of user files, titled by fid (file id) so like: userfiles/1.txt userfiles/2.doc userfiles/3.xls etc.... Some of these files have password protection on them, some don't. I have a general php page: viewFile.php?fid=** to access a file. That page loads up some info about the file, and then it has a link to download the file. How can I restrict downloads to users going through that page? Like right now anybody can direct their browser to userfiles/1.txt to download the file. How can I make it so only people that successfuly went to viewFile.php?fid=1 (it has a password script on it) can open the file?
View Replies !
How To Restrict Multiple Login Using A Single Account.
In my project there is a requirement. If a user logged in at a time since he/she logged out others are not allowed to loggin using the same user name. That is to avoid multiple logins using a account. How to do this? I had got a idea and implemented. 1. When a user logs in storing the username, ip, login time to db. 2. When a User logs in i'll check the table whether the username exists in the table or not if yes i'll not allow the user to login else i'll allow to loggin. 3. When he logs out i'll delete the record from the table. Then he/ she can login again. But there is a problem in this the user can close the browser directly or right click in the taskbar and close it or by pressing Alt + F4. So for this i have to catch the things in Javascript and trigger the logout. Is is possible to catch the events in Javascript, if yes please provide me. Or Is there any other method to restrict multiple login using single account.
View Replies !
Restrict User Access Based On The Login?
I'm creating a program in PHP/MySQL, for which I need to restrict user access based on the login. How can I restrict access based on login? I know you can do with creating different folders on windows server and assigning different a user rights, then put relevant pages into that folder. Is there any other way you can do that purely using PHP/MySQL that is quite robust enough? How can you decide which user gets access to which page?
View Replies !
Restrict Access To A Remote Javascript File Using Php.
I am trying to restrict access to a remote javascript file using php. I include the php file: <script type="text/javascript"src="http://www.theremoteserver.com/phpfile.php"></script> then i want to restrict access so that it isnt open for anyone to use the above. currently i am using: $_SERVER['HTTP_REFERER']; to get the server name but i understand that this is set by the user agent and not to be trusted. better way to do this?
View Replies !
Get Webpage Url
how would I call a web page url I'm interested in the current active page Example the URL when I type this post is http://www.phpfreaks.com/forums/index.php?action=post;board=1.0 I want to assign it to a variable ie $url=http://www.phpfreaks.com/forums/index.php?action=post;board=1.0
View Replies !
Screenshot Of Webpage.
I remember an old topic way back about creating a script that would be able to create a dynamic thumbnail image of a live web page. I didn't follow it all the way thru and never did see if somebody created a solution. I tried searching for it, but can't find it. Did anyone figure out if this is possible?
View Replies !
How To Parse A Webpage
I've scoured the net looking for a tutorial on how to parse a webpage but I've come up short handed. Can anyone provide me with some tips on how to get started?
View Replies !
Forcing A GET To Another Webpage
How can I forcefully 'push' a get request within a php? Example would be having 2 websites running on two diferent server. When I update site A, I would like update site B as well using GET. PHP Code:
View Replies !
Ideas ..with Webpage
Hello I didn't do any web page development since university ,I wanted to create a web page for the fun of it ,an I was surprised of how easy it is to use frontpage and dramweaver to do basic stuff ,but I wanted to do something that I am sure it can be done but I don't really know the way . The webpage is not something original and it has been done before . Xe.com is a currency converter from a currency to another currency I have the following questions : 1) Wanted to auto detect the users country and accordingly set the starting currency (from this currency) to the currency that his country is using. And also change the language to the user's language ... 2)lets say that I have users from two countries Germany and Hungary I can create two starting web pages one with Hungarian and one with German ..but lets say I have users from 30 different countries is not very convenient to have to create a web page for each language there must be a way that someone can i have a webpage that takes textiles or something with the language strings and just displays them. 3) Lets say that the language is wrong and the user is using a computer of the Spanish person and the user is Japanese I want to give them the option to change the language at any time ..do they have to install another language e.g Japanese in this case? or only the encoding has to be changed .? 4)I wanted to give the user the option to select the currency in a better way than dropdown box ,or a list box .. like a menu somehow but I can't come with anything ...I don't know what guys can you suggest I guess the list box is the obvious especially if there are so many currencies but I would like something nicer... for example to display the currency image at the side ..not sure.. 5) If I create user login for example and I have different users that they pay for the services how can I restrict certain currency converter for certain users e.g. we have two users and the one user didn't pay subscribed for the free service (he can convert Euro to dollars, visa versa, pounds to dollars visa versa, pounds to Euro visa versa), the user that paid can convert any currency .. 6) How can I restrict users from copying the website (using offline explorer for example). I was wondering what tools do I need to use to create the website(recommended reading books?/online tutorials ),how will I be creating the functionality that I want and how will I be resolving every problem listed ?
View Replies !
Webpage To Email
Several times recently I've been asked to generate HTML email messages for clients. It would be very nice to be able to render an existing webpage in such a way that it could be included as the HTML portion of an email message. The problem is that web pages usually have some relative urls, such as for images, links, stylesheets, backgrounds, etc. which wouldn't work in an email. Does anyone know of a way (in PHP) to translate all the relative urls in a document to absolute?
View Replies !
Webpage Via EMail
I have developed a website in my local machine using PHP, MySql and apache. It's not uploaded on the net. If someone asks for references, is there a way to send without uploading on the net?
View Replies !
Moving To Another Webpage
Is there a way of jumping to another page from PHP. I've got a form that is submitted, and that data is entered into the database. I want the page to then go back to the original page. Can i do this?
View Replies !
Webpage Hit Counter
Where would I find a website hit counter written preferably in PHP? I do not have shell access to the web provider so installation would have to be via FTP only (no make or compilation)....
View Replies !
Using A PDF-creator On A Webpage
I have a webpage: www.site/page245.php. I also have a "frame" on the right side where I have this PDF-button. That button uses html2pdf to create a pdf. The problem is: I need to get a hold of the address it is supposed to create a pdf of. when I use this code: $htmlFile = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; I only get the current page, and I want the previous.
View Replies !
Backup A Webpage
Is there a way with php to backup/mirror a page? I know that I can use file_get_contents() to get the HTML from the page, however how can I get the images etc to be downloaded and stored on the server?
View Replies !
|