Hi all,
I am developing a proxy website, and I want to block all porn websites. I have no Idea hoe to do this in my PHP code. The web hosting company my website is hosted in does not offer any service like this.
Please advise.
| SitePoint Sponsor |


Hi all,
I am developing a proxy website, and I want to block all porn websites. I have no Idea hoe to do this in my PHP code. The web hosting company my website is hosted in does not offer any service like this.
Please advise.
Open Blocked website
Open Blocked Website
Knowledge Is Knowing That A Tomato Is A Fruit,
Wisdom Is Not Putting It In A Fruit Salad.
Very hard to do I'm afraid, some sites are 'tagged' to state their content but most are not.
So I hear.
You could create a filter which would look for a concentration of specific keywords before output, if this limit was reached, block.
@AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.

You could always create a parser for an already existing blacklist - for example squid has a filtering system called squidGuard. I know you can get blacklists for this that users on the internet submit various sites to. It wouldnt' be perfect, but I bet it'd get 95% of them.





Use a blacklist like TimIgoe suggested. Otherwise, you're just going to have to stick to grepping the page for certain keywords, but this is very inaccurate.
No one tags their websites. I use to... in 2000, but it was fruitless. The right sites that need to tag won't tag, and no one bothers with the sites that do have tags.
By the way, you can hook into OpenDNS, which has domain-based blacklists. You would have to either switch the entire system (OS) to use OpenDNS, or manually access the DNS system and access OpenDNS' servers.
Bookmarks