Go Back   CodingForums.com > :: Client side development > General web building

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-02-2007, 10:25 PM   PM User | #1
cosmicgirl
New Coder

 
Join Date: Jan 2006
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
cosmicgirl is an unknown quantity at this point
htaccess:

Hi!

I've been trying to block a user by denying their IP addresses in an htaccess file. But I've recently noticed that this person has managed to view pages of my site via the German translation of Google. How can I completely block translations by Google or any other translation site ?
And do I have to block all languages ? Or can I choose the ones that are allowed to translate pages of my site ?

Thanks for any help !
cosmicgirl is offline   Reply With Quote
Old 06-03-2007, 03:24 AM   PM User | #2
mlseim
Master Coder

 
mlseim's Avatar
 
Join Date: Jun 2003
Location: Cottage Grove, Minnesota
Posts: 9,046
Thanks: 8
Thanked 1,029 Times in 1,020 Posts
mlseim has a spectacular aura aboutmlseim has a spectacular aura aboutmlseim has a spectacular aura about
That's tough to control. What happens if that user accesses using
someone else's computer? What is the reason for banning? Maybe you
need to think outside the box (come up with something different).
mlseim is offline   Reply With Quote
Old 06-03-2007, 11:13 AM   PM User | #3
bazz
Master Coder

 
Join Date: Apr 2003
Location: in my house
Posts: 5,211
Thanks: 39
Thanked 201 Times in 197 Posts
bazz will become famous soon enoughbazz will become famous soon enough
yeh as mlseim says, its tough to control who sees your pages if they use a different PC from their own.

I reckon you might need to password protect those pages that you want to limit viewings of. Then, only those who you authorise can see them however, I don't know how you would identify this specific individual.

bazz
bazz is offline   Reply With Quote
Old 06-03-2007, 11:35 AM   PM User | #4
CFMaBiSmAd
Senior Coder

 
CFMaBiSmAd's Avatar
 
Join Date: Oct 2006
Location: Denver, Colorado USA
Posts: 2,714
Thanks: 2
Thanked 251 Times in 243 Posts
CFMaBiSmAd is a jewel in the roughCFMaBiSmAd is a jewel in the roughCFMaBiSmAd is a jewel in the roughCFMaBiSmAd is a jewel in the rough
By going through a site like the Google translator, they are basically reading your page through a proxy/third party server. There are probably 10's of thousands of proxy servers on the Internet, each with their own IP address. It is also easy to obtain a new IP address if they did not want to go to the trouble of finding a different proxy server to use. So, banning IP addresses is not an effective method of limiting access to your content.

What exactly are you trying to prevent? Hot linking of images, which uses your bandwidth? Or limiting access to content on some of your web pages?

To stop hot linking, it is necessary to start a session on your web page and then dynamically output images only if the session exists. [Note: The reason I did not mention checking the HTTP_REFERER header is that every proxy script I have examined sets this to the URL being requested, so it looks like the REFERER is the site where the images are being fetched from.]

To limit access, it is necessary to use email verified registration and login. This however, will only slow someone down, as it is easy to obtain any number of free email accounts that could be used to register with.
__________________
If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.
CFMaBiSmAd is offline   Reply With Quote
Old 06-03-2007, 06:06 PM   PM User | #5
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
Quote:
Originally Posted by CFMaBiSmAd View Post
To stop hot linking, it is necessary to start a session on your web page and then dynamically output images only if the session exists.
Wouldn't it be easier to use htaccess?
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 04:58 AM.


Advertisement
Log in to turn off these ads.