SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict ruba's Avatar
    Join Date
    Apr 2005
    Location
    Amman -Jordan
    Posts
    339
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question how to block a porn from my proxy website

    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.

  2. #2
    Twitter: @AnthonySterling silver trophy AnthonySterling's Avatar
    Join Date
    Apr 2008
    Location
    North-East, UK.
    Posts
    6,111
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    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.

  3. #3
    Twitter: @TimIgoe silver trophy TimIgoe's Avatar
    Join Date
    Feb 2005
    Location
    Blackpool, UK
    Posts
    1,057
    Mentioned
    27 Post(s)
    Tagged
    1 Thread(s)
    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.

  4. #4
    SitePoint Wizard
    Join Date
    Mar 2008
    Posts
    1,149
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •