Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 10-30-2008, 08:39 PM   #1
LQ Newbie
Registered: Jul 2005
Posts: 5

Rep: Reputation: 0
Is it possible to block third party sites from server?

I have bought a premium membership from Until recently this has worked ok. I have been using their embeded player in my pages and also adding a link to the Megavideo page where the video is located. However recently if I click on the embeded player to start it, Megavideo is popping up a page to AdultFriendFinder. My site is rated child-safe and this compromises the child-safe status of my site. Beyond that I paid $200 for a premium membership and I'm livid that they would later decide to force tasteless advertising on me that compromises my site after I've paid them for a premium membership.

I have emailed them about this but in the past they have ignored nearly all email I send to their support. I also have researched and found that, though the servers are located in the US, the register of Megavideo is located in Hong Kong so suing is simply not possible. Perhaps I can sue the servers.

The easier solution and more secure is to block 3rd party ads, if that is possible. I have a dedicated server so I have total root access. Is there some way that I can block these ads from my server? Some way that I can be sure that Megavideo or other disreputable sites cannot slip sexual advertisement on my site.

Old 10-30-2008, 09:33 PM   #2
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Sure - it's easy to block IP addresses and ports with your firewall. And you should *definitely* block all ports you're not *explicitly* using - just as a standard "best practice".

But the problem is that these guys are probably coming in on your standard game port (or worse, on HTTP), and probably don't have a consistent IP address or domain name.

Here's a good, simple answer to try first:

Although primarily a client-side solution, you might also want to consider .pac files (Proxy Auto-Configuration files):
Old 10-30-2008, 09:56 PM   #3
LQ Newbie
Registered: Jul 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Paulsm4, I think you're misunderstanding. A have a site that's on a server. I have root access on my server. In the site that's on that server I have programmed in the embeded player that MegaVideo says I can use. Hence, when people come to my site they can see video that is actually hosted on by clicking on the player. The problem is that recently Megavideo is now sending a sexual page along with the player's video. So when a person goes to my site, and click on the player, they are "treated" to a sexually oriented ad for AdultFriendFinder before they get to see the video. On a Child-safe site such as mine, this is totally intolerable.

For the moment I have replaced the player with this: "MegaVideo is now forcing porn ads on those who use the embeded player. Hence, as a Child-Safe site, we have been forced to remove that feature. Please email to express your outrage with them about this."

Hopefully enough people will complain so that Megavideo will quit this disgusting practice.

As far as I know, there is no way I can block the AdultFriendFinder ad. I doubt there is a way but I thought I'd ask here to be sure.

Old 10-30-2008, 10:08 PM   #4
Senior Member
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,125
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
I don't think this is a matter of blocking them on your server. When someone views your website they probably get a direct link to the 3rd party ad and it doesn't involve your server at all. Since its an embedded player from Megavideo I'm not sure you can do anything about it for people coming to your site. If it's something in the html you have that embeds the player you can modify it to not pop up the page, but I'd bet its actually in the player.

(Just ignore this, guess I should have refreshed before responding).

Last edited by estabroo; 10-30-2008 at 10:09 PM. Reason: obsolete
Old 10-30-2008, 11:32 PM   #5
LQ Newbie
Registered: Jul 2005
Posts: 5

Original Poster
Rep: Reputation: 0
I really doubt I can do anything other than removing the player, which, as I mentioned above, I have. It was working and I made no changes to the player and the ads have suddenly appeared so they have to be coming from changes on MegaVideo in how they handle requests to the player. I have complained to all involved which is MegaVideo, their hosting company and AdultFriendFinder.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid to block all the sites except 1 or 2 sites winxandlinx Linux - Networking 8 10-27-2010 02:53 AM
Problem with third party sites loading jschiwal LQ Suggestions & Feedback 3 06-12-2008 02:56 PM
how to block sites 4ajaysingh Linux - Networking 1 01-23-2007 09:01 AM
block some sites nkutty Linux - Security 1 10-03-2005 04:15 AM
How to BLOCK SLEEZE SITES? saugato Linux - Security 3 02-11-2005 08:39 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration