/    Sign up×
Community /Pin to ProfileBookmark

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!

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@olafFeb 29.2004 — Hallo,

use .htacces in the folder where the script is placed. You serverside script will be processed with out a password.
Copy linkTweet thisAlerts:
@olafFeb 29.2004 — or use this :

if ($_SERVER['HTTP_REFERRER'] == "your script path") {

execute the script;

}
×

Success!

Help @CodeGod spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.23,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...