Welcome to Welcome to DNF.com™ - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars

If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.

Register Today on DNForum IT'S FREE!

Results 1 to 14 of 14
  1. #1
    Platinum Lifetime Member
    cyphix's Avatar
    Join Date
    Jan 2003
    Location
    Australia
    Posts
    3,603
    DNF$
    1,774
    Bank
    0
    Total DNF$
    1,774
    Donate  

    How to block outside sites from using your scrpts?

    Can this be done with .htaccess?

    What if I want to allow certain domains to use the scripts also?

    Thanks for any help!
    538k Lyrics Database Available - Only $49 - Check Here

  2. #2
    Former DNF Admin
    MediaHound's Avatar
    Join Date
    Feb 2004
    Location
    Florida
    Posts
    4,896
    Blog Entries
    1
    DNF$
    15,979
    Bank
    0
    Total DNF$
    15,979
    Donate  

    Re: How to block outside sites from using your scrpts?

    Usually, scripts output php which in turn is turned into html by the server, or some similar configurtation, etc.
    The scripts stay safe on your server. It would involve hacking to get to your scripts.
    Unless your script is .js and its in the source of the output anyway.
    Could you elaborate on the problem at hand?

  3. #3
    Platinum Lifetime Member
    cyphix's Avatar
    Join Date
    Jan 2003
    Location
    Australia
    Posts
    3,603
    DNF$
    1,774
    Bank
    0
    Total DNF$
    1,774
    Donate  

    Re: How to block outside sites from using your scrpts?

    I was just thinking that others might be able to make use of my scripts if they referenced them from their site or something.
    538k Lyrics Database Available - Only $49 - Check Here

  4. #4
    Former DNF Admin
    MediaHound's Avatar
    Join Date
    Feb 2004
    Location
    Florida
    Posts
    4,896
    Blog Entries
    1
    DNF$
    15,979
    Bank
    0
    Total DNF$
    15,979
    Donate  

    Re: How to block outside sites from using your scrpts?

    Depends on who, what, where, when, why, and how, maybe yes, maybe no.
    If you are being violated, in your .htaccess add these lines

    Order Allow,Deny
    Deny from 65.2.1.255
    Allow from all

    Replace the ip with the ip of the scraper/offender's server.
    You can also block a block by leaving off the final 255 (or whatever) and ending with the "."

    Hope that helps

  5. #5
    Exclusive Lifetime Member
    theparrot's Avatar
    Join Date
    Mar 2004
    Posts
    641
    DNF$
    36,543
    Bank
    0
    Total DNF$
    36,543
    Donate  

    Re: How to block outside sites from using your scrpts?

    I think what you want to do is set up a list of valid referer's to accept, then is the referal header is not in the list you reject the link. It is not fool proof and easy to work around , but it probably stops 99% of the people that just embede you site in a frame to claim it as their own. You can just make a library routine to do this, and call it from the start of your scripts. It is not usually done with .htaccess as if you did it that way you would also be blocking the user from visting your site directly.

    On the other hand if they are reading your script results in, and then outputing the results as their own, the above would work. So it depends on how they are embedding your results and what you want to prevent.
    Last edited by theparrot; 08-31-2004 at 11:45 AM.

  6. #6
    Former DNF Admin
    MediaHound's Avatar
    Join Date
    Feb 2004
    Location
    Florida
    Posts
    4,896
    Blog Entries
    1
    DNF$
    15,979
    Bank
    0
    Total DNF$
    15,979
    Donate  

    Re: How to block outside sites from using your scrpts?

    BTW, happy b-day, cyphix

  7. #7
    Platinum Lifetime Member
    cyphix's Avatar
    Join Date
    Jan 2003
    Location
    Australia
    Posts
    3,603
    DNF$
    1,774
    Bank
    0
    Total DNF$
    1,774
    Donate  

    Re: How to block outside sites from using your scrpts?

    Thanks for the replies guys... & thanks for the bday wish MH! :-D

    Basically, I'm more worried about people trying to use my scripts without my knowledge which is why blocking a certain IP wouldn't work.
    538k Lyrics Database Available - Only $49 - Check Here

  8. #8
    Former DNF Admin
    MediaHound's Avatar
    Join Date
    Feb 2004
    Location
    Florida
    Posts
    4,896
    Blog Entries
    1
    DNF$
    15,979
    Bank
    0
    Total DNF$
    15,979
    Donate  

    Re: How to block outside sites from using your scrpts?

    whats the link to the site in action?
    I'll take a look at what your trying to describe, (as it's not clear to me), and maybe make a recommendation for you.

  9. #9
    Exclusive Lifetime Member
    theparrot's Avatar
    Join Date
    Mar 2004
    Posts
    641
    DNF$
    36,543
    Bank
    0
    Total DNF$
    36,543
    Donate  

    Re: How to block outside sites from using your scrpts?

    Quote Originally Posted by cyphix
    Thanks for the replies guys... & thanks for the bday wish MH! :-D

    Basically, I'm more worried about people trying to use my scripts without my knowledge which is why blocking a certain IP wouldn't work.

    you need to check the referer: field in the http headers then.

    Other option is to require cookies.

  10. #10
    Platinum Lifetime Member

    Join Date
    Nov 2002
    Posts
    140
    DNF$
    3,213
    Bank
    0
    Total DNF$
    3,213
    Donate  

    Re: How to block outside sites from using your scrpts?

    Use an image verification, it's more effective as they have to input some numbers before they can use the script.

    For referer check or IP block, it's rather easy to work around for someone with scripting knowledge.
    -
    PageRank.net: Search Engine Optimization; SEO, Webmaster & Domain Tools

  11. #11
    Platinum Lifetime Member
    cyphix's Avatar
    Join Date
    Jan 2003
    Location
    Australia
    Posts
    3,603
    DNF$
    1,774
    Bank
    0
    Total DNF$
    1,774
    Donate  

    Re: How to block outside sites from using your scrpts?

    Well I think it will be ok as you have to actually be logged in to use the scripts really.. but I thought someone may be able to put some kinda hack together if they tried hard enough..... maybe I'm juat paranoid.

    MH.. site is not active just yet so nothing to show really. ;-)
    538k Lyrics Database Available - Only $49 - Check Here

  12. #12
    DNF Addict

    Join Date
    Jul 2004
    Location
    Chandigarh, India
    Posts
    2,674
    DNF$
    13,195
    Bank
    0
    Total DNF$
    13,195
    Donate  

    Re: How to block outside sites from using your scrpts?

    happy birthday cyphix
    NICE Domains for sale - Huge Collection

    PM me for details

  13. #13

    Re: How to block outside sites from using your scrpts?

    if you still cant find it check hotscripts.com ithink thats it

  14. #14
    DNF Addict

    Join Date
    Jul 2004
    Location
    Chandigarh, India
    Posts
    2,674
    DNF$
    13,195
    Bank
    0
    Total DNF$
    13,195
    Donate  

    Re: How to block outside sites from using your scrpts?

    just block all and allow your own server IP and the domain itself as the refferrer.
    NICE Domains for sale - Huge Collection

    PM me for details

Similar Threads

  1. Do's and Don'ts for Building Your Site's Link Popularity
    By mole in forum Website Development and Design Discussion
    Replies: 6
    Last Post: 07-08-2004, 12:01 AM
  2. 2 icon sites combo deal + extras!
    By maximumhost in forum Developed Websites for Sale
    Replies: 12
    Last Post: 05-11-2004, 09:36 PM
  3. Webmaster Network with 18 webmaster related sites for sale
    By system0 in forum Developed Websites for Sale
    Replies: 4
    Last Post: 12-11-2003, 01:47 PM
  4. Visa Mastercard Tightening up on Porn
    By NameBox in forum Domain Name News
    Replies: 4
    Last Post: 01-16-2003, 10:09 AM

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
  •  

Domain name forum recommended by Domaining.com