Networking Forums

Networking Forums > Computer Networking > Linux Networking > Forbid URL : Prevent Fraud. Reject domain list

Reply
Thread Tools Display Modes

Forbid URL : Prevent Fraud. Reject domain list

 
 
2401 members, members can post
Guest
Posts: n/a

 
      10-24-2007, 09:25 AM
Paris, October 24 2007,

Dear Madams and Sirs,

Ever had the chance to forbid a website to download HTTP files from
your Website ?

Have a pc-linux-gnu on i686 - Apache version is Apache/2.0.50
(Fedora).

As an example : they insert in their web-pages : <iframe src="our-
website.com/file.php"> OR <img src="our-website.com/file.gif"

These websites are 100% undesired.

We searched out and asked questions BUT
.. if we found out how to forbid ONE USER to download a content
.. if we found out how to forbid USERS to access a file or a
directory.

We could not AT ALL find out how to forbid one website (eg :
click-as-a-monkey.com) to display our content.

> We found out 3 solutions that do not work :




1) Embeed the httpd.conf file inserting Directives and Rules
http://httpd.apache.org/docs/1.3/misc/rewriteguide.html
http://httpd.apache.org/docs/2.2/mis...de.html#access
http://www.doonet.info/apache_rewriting.php

Point is, we cannot change the httpd.conf file.



2) Change the PHP.INI
We did not find any operational solution to insert a list of anti-
leech and to monitor the referers.



3) Change the .htaccess of our website.
This solution seemed to be very soft and smart, but implementation
does not work.

3.A. Two Websites

/home/virtual/site5/fst/var/www/html/
/home/virtual/site1/fst/var/www/html/

3.B. We implemented on site5 the following script :

vi .htaccess

<Limit GET POST>
order allow,deny
allow from all
deny from ad........com
</Limit>
<Limit PUT DELETE>
order deny,allow
allow from all
deny from all
</Limit>
AuthName "No"
AuthType Basic
Require valid-user
AuthUserFile /home/virtual/site2/fst/var/www/html/.htpasswd

3.C. Objective is to fordid the user connected from site1 to DW any
content from site5

3.D. After several trials : That does not work AT ALL

http://tinyurl.com/2kaqym



We please thank you for any operational solution from your knowledge
and experiences,



My Regards

Bob

 
Reply With Quote
 
 
 
 
david
Guest
Posts: n/a

 
      10-24-2007, 09:44 AM
On Wed, 24 Oct 2007 02:25:07 -0700, 2401 members, members can post
rearranged some electrons to say:

> Paris, October 24 2007,
>
> Dear Madams and Sirs,
>
> Ever had the chance to forbid a website to download HTTP files from your
> Website ?


As someone already told you, "websites" don't download files from your
server. Your files are accessed when the end user's web browser reads
the HTML files on the web server in question. The end user's web browser
then reads your files.

The easiest way is to quietly rename whatever files you believe are being
referenced by the other website. Then the user will get a "404 - not
found" error when they load the other website's HTML and their browser
tries to load your files.

If all of the users that are reading the "other" web site are in a
particular domain, or a block of IP addresses, you can block them using
the methods already given to you. However, if you don't know what domain
the users of the "other" web site are, you won't have any way of knowing
what domain they are in.

 
Reply With Quote
 
david
Guest
Posts: n/a

 
      10-24-2007, 09:57 AM
On Wed, 24 Oct 2007 09:44:47 +0000, david rearranged some electrons to
say:

> On Wed, 24 Oct 2007 02:25:07 -0700, 2401 members, members can post
> rearranged some electrons to say:
>
>> Paris, October 24 2007,
>>
>> Dear Madams and Sirs,
>>
>> Ever had the chance to forbid a website to download HTTP files from
>> your Website ?

>
> As someone already told you, "websites" don't download files from your
> server. Your files are accessed when the end user's web browser reads
> the HTML files on the web server in question. The end user's web
> browser then reads your files.
>
> The easiest way is to quietly rename whatever files you believe are
> being referenced by the other website. Then the user will get a "404 -
> not found" error when they load the other website's HTML and their
> browser tries to load your files.
>
> If all of the users that are reading the "other" web site are in a
> particular domain, or a block of IP addresses, you can block them using
> the methods already given to you. However, if you don't know what
> domain the users of the "other" web site are, you won't have any way of
> knowing what domain they are in.


As someone else already told you, try filtering on the "Referrer" field.
 
Reply With Quote
 
2401 members, members can post
Guest
Posts: n/a

 
      10-24-2007, 12:25 PM


The Referrer Field Solution to
Forbid URL : Prevent Fraud. Reject domain list


1) We know that domain name of the websites that we want to forbid to
DW our files.

example : http://www.dmain.com

2) The files downloaded are numerous :
a.php
a.gif
b.png
.....

3) We implemented in PHP
$http_ref= $HTTP_REFERER;
$exclude1 = "clic-gagnant.net/";
$exclude2 = "http://www.aqua-surfeur.com";
if (strncmp($http_ref, $exclude1, strlen($exclude1)) == 0 ||
strncmp($http_ref, $exclude2, strlen($exclude2)) == 0 ||
{ echo '<sc'.'ript>self.location.replace("http://");</sc'.'ript>';
exit(); }

But this is not what we want because this is only working for script-
readen files but not for GIF.


The 3B) solution seemed to be better BUT does not work :

..htaccess
<Limit GET POST>
order allow,deny
allow from all
deny from ad........com
</Limit>

Might you have a better solution, we would strongly appreciate :
sending you all our thanks.

Bob




 
Reply With Quote
 
2401 members, members can post
Guest
Posts: n/a

 
      10-24-2007, 12:28 PM




The Referrer Field Solution to
Forbid URL : Prevent Fraud. Reject domain list


1) We know that domain name of the websites that we want to forbid to
DW our files.

example : http://www.dmain.com

2) The files downloaded are numerous :
a.php
a.gif
b.png
.....

3) We implemented in PHP
$http_ref= $HTTP_REFERER;
$exclude1 = "clic-gagnant.net/";
$exclude2 = "http://www.aqua-surfeur.com";
if (strncmp($http_ref, $exclude1, strlen($exclude1)) == 0 ||
strncmp($http_ref, $exclude2, strlen($exclude2)) == 0 ||
{ echo '<sc'.'ript>self.location.replace("http://");</sc'.'ript>';
exit(); }

But this is not what we want because this is only working for script-
readen files but not for GIF.


The 3B) solution seemed to be better BUT does not work :

..htaccess
<Limit GET POST>
order allow,deny
allow from all
deny from ad........com
</Limit>

Might you have a better solution, we would strongly appreciate :
sending you all our thanks.

Bob




 
Reply With Quote
 
Henry16@2cuk.co.uk
Guest
Posts: n/a

 
      10-24-2007, 12:30 PM



The Referrer Field Solution to
Forbid URL : Prevent Fraud. Reject domain list


1) We know that domain name of the websites that we want to forbid to
DW our files.

example : http://www.dmain.com

2) The files downloaded are numerous :
a.php
a.gif
b.png
.....

3) We implemented in PHP
$http_ref= $HTTP_REFERER;
$exclude1 = "clic-gagnant.net/";
$exclude2 = "http://www.aqua-surfeur.com";
if (strncmp($http_ref, $exclude1, strlen($exclude1)) == 0 ||
strncmp($http_ref, $exclude2, strlen($exclude2)) == 0 ||
{ echo '<sc'.'ript>self.location.replace("http://");</sc'.'ript>';
exit(); }

But this is not what we want because this is only working for script-
readen files but not for GIF.


The 3B) solution seemed to be better BUT does not work :

..htaccess
<Limit GET POST>
order allow,deny
allow from all
deny from ad........com
</Limit>

Might you have a better solution, we would strongly appreciate :
sending you all our thanks.

Bob



 
Reply With Quote
 
goarilla
Guest
Posts: n/a

 
      10-25-2007, 07:56 PM
(E-Mail Removed) wrote:
>
>
> The Referrer Field Solution to
> Forbid URL : Prevent Fraud. Reject domain list
>
>
> 1) We know that domain name of the websites that we want to forbid to
> DW our files.
>
> example : http://www.dmain.com
>
> 2) The files downloaded are numerous :
> a.php
> a.gif
> b.png
> ....
>
> 3) We implemented in PHP
> $http_ref= $HTTP_REFERER;
> $exclude1 = "clic-gagnant.net/";
> $exclude2 = "http://www.aqua-surfeur.com";
> if (strncmp($http_ref, $exclude1, strlen($exclude1)) == 0 ||
> strncmp($http_ref, $exclude2, strlen($exclude2)) == 0 ||
> { echo '<sc'.'ript>self.location.replace("http://");</sc'.'ript>';
> exit(); }
>
> But this is not what we want because this is only working for script-
> readen files but not for GIF.
>
>
> The 3B) solution seemed to be better BUT does not work :
>
> .htaccess
> <Limit GET POST>
> order allow,deny
> allow from all
> deny from ad........com
> </Limit>
>
> Might you have a better solution, we would strongly appreciate :
> sending you all our thanks.
>
> Bob
>
>
>

oh my you are going into many people's killfiles!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
embeed : Forbid URL : Prevent Fraud. Reject domain list Henry16@2cuk.co.uk Linux Networking 2 10-24-2007 06:22 PM
Linux : Reject domain List (httpd & server) 2401 members, members can post Linux Networking 7 10-24-2007 04:34 AM
Unable to browse domain list for primary domain on any server or P Fraser Simpson Windows Networking 6 09-15-2006 03:39 PM
Domain List on 2003 Server Scott Windows Networking 0 07-12-2004 04:55 PM
how to remove a domain from the list James Windows Networking 1 06-23-2004 06:44 AM



1 2 3 4 5 6 7 8 9 10 11