-
Hotlinking
Hello all,
there is a feedback form on my website, say on mydomain.com.
I want that form to be used on mydomain.com
I mean I dont want anyone to save that form on their own webspace and post it on my domain for processing using my files.
$_ENV['REFFERER'] returns the complete URL but I want to check particularly the domain name.
can anyone please write some code for me?
Thanks!
-
Hallo,
use .htacces in the folder where the script is placed. You serverside script will be processed with out a password.
-
or use this :
if ($_SERVER['HTTP_REFERRER'] == "your script path") {
execute the script;
}
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
|
Bookmarks