How to block website
Page 1 of 110 Replies - 318 Views - Last Post: 24 June 2012 - 03:15 PM
#1
How to block website
Posted 22 June 2012 - 07:14 AM
hi, I want to create a php file, in which it can block any URL that i key into the code, can someone help me how do i start doing it? for example: if i enter the url:google.com, then google.com will be blocked
Replies To: How to block website
#2
Re: How to block website
Posted 22 June 2012 - 07:29 AM
What do you mean "blocked"? Blocked from whom?
#3
Re: How to block website
Posted 22 June 2012 - 07:31 AM
Blocked how?
PHP is server side. People browsing on the internet will not be routed through your server unless it is a proxy server, in which case it would already have (most likely) URL filtering.
PHP is server side. People browsing on the internet will not be routed through your server unless it is a proxy server, in which case it would already have (most likely) URL filtering.
#4
Re: How to block website
Posted 22 June 2012 - 05:41 PM
hi, for example, I am developing a firefox extention, in which when the user clicked on a button, the current webpage url will be added to BLACKLISTED aka blocked, so when the user try to enter that url again, it will be blocked, so I need to create a php to support that blacklisted function
#5
Re: How to block website
Posted 22 June 2012 - 05:54 PM
I don't get how PHP would be useful in that situation. PHP is typically used as a server-side scripting language. It has no power to black-list anything on the client-side. - Perhaps if the server PHP operated on was acting as some sort of a proxy server, and the client was forced to route through that, then it may be of some use. (Although there are probably better options for even that.)
From my limited understanding of Firefox extensions, you would want to use Javascript to compile your blacklist, saved either using some client-side web storage (like the HTML5 localStorage API) or perhaps some sort of a SQLite database.
From my limited understanding of Firefox extensions, you would want to use Javascript to compile your blacklist, saved either using some client-side web storage (like the HTML5 localStorage API) or perhaps some sort of a SQLite database.
#6
Re: How to block website
Posted 22 June 2012 - 07:16 PM
If you do not wish for google to spider your site, you should add it to the robots.txt file. PHP is not the tool for this.
** Topic moved to Web Servers & Hosting **
** Topic moved to Web Servers & Hosting **
#7
Re: How to block website
Posted 22 June 2012 - 10:33 PM
#9
Re: How to block website
Posted 23 June 2012 - 02:36 AM
Hi, thank for the robot.txt help, but I dun think it really does what I want to do, Basically my goal is to create a javascript in which whenever a user click on a widget that i created on firefox, the widget will pop out with a window telling if the website the user is surfing is a phishing website or not, so i need to create someting in which, it can detect the url of potiential phishing site
#10
Re: How to block website
Posted 23 June 2012 - 05:32 PM
I understand what you are trying to accomplish. But your chosen execution point doesn't make a lot of sense. Domain name resolution occurs at the networking level, & is handled by the Operating System. I would think this would be a better point of evaluation than a web based language such as PHP or Javascript. Otherwise you are only going to evaluate the site that is currently being viewed. This would not make any sense to me.
I will admit I am not certain as to Atli's suggestion for using Javascript for a plugin with firefox. If that's the method you wish to take, I'll gladly move the topic there for better visibility by language association.
I will admit I am not certain as to Atli's suggestion for using Javascript for a plugin with firefox. If that's the method you wish to take, I'll gladly move the topic there for better visibility by language association.
#11
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote






|